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.
This commit is contained in:
parent
73408bdf24
commit
1bbc961bd6
1 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue