From f96a0567ec33dc4934702fbfcf606e3ca925dbc0 Mon Sep 17 00:00:00 2001 From: niklascfw Date: Sat, 28 Mar 2026 21:17:50 +0100 Subject: [PATCH] Workflow: Swap asset delete and varient building --- .github/workflows/update-latest-release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-latest-release.yml b/.github/workflows/update-latest-release.yml index b11709e..0d57aeb 100644 --- a/.github/workflows/update-latest-release.yml +++ b/.github/workflows/update-latest-release.yml @@ -1,6 +1,7 @@ name: Update Latest Release Assets # Baut OmniNX neu und ersetzt die .zip-Anhänge am neuesten (nicht-Draft-)Release. +# Ablauf: zuerst bauen, dann alte .zips löschen und neue hochladen — kürzere Zeit ohne Anhänge; bei Build-Fehler bleiben alte Zipps am Release. # Nutzt curl + Python (kein gh CLI) — läuft z. B. unter nektos/act. # # Lokal mit act: 404/401 = Repo/Credentials passen nicht zu api.github.com (z. B. nur Gitea-Remote). @@ -63,6 +64,10 @@ jobs: echo "skip=false" >> "$GITHUB_OUTPUT" fi + - name: Build all variants + if: steps.release.outputs.skip == 'false' + run: bash scripts/build-all.sh + - name: Delete existing .zip assets from that release if: steps.release.outputs.skip == 'false' run: | @@ -119,10 +124,6 @@ jobs: raise PY - - name: Build all variants - if: steps.release.outputs.skip == 'false' - run: bash scripts/build-all.sh - - name: Attach new zips to release if: steps.release.outputs.skip == 'false' uses: softprops/action-gh-release@v1