From 1bbc961bd68ce2da1737041425ed1832791691ba Mon Sep 17 00:00:00 2001 From: randogoth Date: Wed, 7 Oct 2026 20:07:09 +0300 Subject: [PATCH] Fix release workflow: use Forgejo's upload/download-artifact fork actions/upload-artifact@v4 and download-artifact@v4 use GitHub's newer Artifacts-v2 protocol, which Forgejo's server explicitly refuses ("not currently supported on GHES"). Forgejo maintains its own forks (forgejo/upload-artifact@v5, forgejo/download-artifact@v7) with that check disabled. Also drops archive: false, an input that fork doesn't expose - the earlier binary rename already keeps filenames distinct through the default zip/extract round-trip. --- .forgejo/workflows/release.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 1b2b26b..037c8d4 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -30,14 +30,14 @@ jobs: GITHUB_TOKEN: "" - run: mv target/release/carrier target/release/carrier-macos-arm64 working-directory: carrier - # archive: false uploads the raw binary (not a zip) and names the - # artifact after the file, so this rename is what keeps the two - # platforms' artifacts from colliding under the same "carrier" name. - - uses: https://code.forgejo.org/actions/upload-artifact@v4 + # actions/upload-artifact@v4 talks the newer Artifacts-v2 protocol, + # which Forgejo's server rejects ("not currently supported on GHES"). + # forgejo/upload-artifact is Forgejo's own patched fork with that + # check disabled - needed on both upload and download ends. + - uses: https://code.forgejo.org/forgejo/upload-artifact@v5 with: name: carrier-macos-arm64 path: carrier/target/release/carrier-macos-arm64 - archive: false linux: runs-on: linux-x86_64 @@ -64,11 +64,10 @@ jobs: GITHUB_TOKEN: "" - run: mv target/release/carrier target/release/carrier-linux-x86_64 working-directory: carrier - - uses: https://code.forgejo.org/actions/upload-artifact@v4 + - uses: https://code.forgejo.org/forgejo/upload-artifact@v5 with: name: carrier-linux-x86_64 path: carrier/target/release/carrier-linux-x86_64 - archive: false # forgejo-release.sh (the engine behind actions/forgejo-release) always # does a blind create-then-upload of the release for the tag, with no @@ -82,7 +81,7 @@ jobs: needs: [macos, linux] runs-on: linux-x86_64 steps: - - uses: https://code.forgejo.org/actions/download-artifact@v4 + - uses: https://code.forgejo.org/forgejo/download-artifact@v7 with: path: dist/release merge-multiple: true