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: ""
|
GITHUB_TOKEN: ""
|
||||||
- run: mv target/release/carrier target/release/carrier-macos-arm64
|
- run: mv target/release/carrier target/release/carrier-macos-arm64
|
||||||
working-directory: carrier
|
working-directory: carrier
|
||||||
# archive: false uploads the raw binary (not a zip) and names the
|
# actions/upload-artifact@v4 talks the newer Artifacts-v2 protocol,
|
||||||
# artifact after the file, so this rename is what keeps the two
|
# which Forgejo's server rejects ("not currently supported on GHES").
|
||||||
# platforms' artifacts from colliding under the same "carrier" name.
|
# forgejo/upload-artifact is Forgejo's own patched fork with that
|
||||||
- uses: https://code.forgejo.org/actions/upload-artifact@v4
|
# check disabled - needed on both upload and download ends.
|
||||||
|
- uses: https://code.forgejo.org/forgejo/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: carrier-macos-arm64
|
name: carrier-macos-arm64
|
||||||
path: carrier/target/release/carrier-macos-arm64
|
path: carrier/target/release/carrier-macos-arm64
|
||||||
archive: false
|
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: linux-x86_64
|
runs-on: linux-x86_64
|
||||||
|
|
@ -64,11 +64,10 @@ jobs:
|
||||||
GITHUB_TOKEN: ""
|
GITHUB_TOKEN: ""
|
||||||
- run: mv target/release/carrier target/release/carrier-linux-x86_64
|
- run: mv target/release/carrier target/release/carrier-linux-x86_64
|
||||||
working-directory: carrier
|
working-directory: carrier
|
||||||
- uses: https://code.forgejo.org/actions/upload-artifact@v4
|
- uses: https://code.forgejo.org/forgejo/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: carrier-linux-x86_64
|
name: carrier-linux-x86_64
|
||||||
path: carrier/target/release/carrier-linux-x86_64
|
path: carrier/target/release/carrier-linux-x86_64
|
||||||
archive: false
|
|
||||||
|
|
||||||
# forgejo-release.sh (the engine behind actions/forgejo-release) always
|
# forgejo-release.sh (the engine behind actions/forgejo-release) always
|
||||||
# does a blind create-then-upload of the release for the tag, with no
|
# does a blind create-then-upload of the release for the tag, with no
|
||||||
|
|
@ -82,7 +81,7 @@ jobs:
|
||||||
needs: [macos, linux]
|
needs: [macos, linux]
|
||||||
runs-on: linux-x86_64
|
runs-on: linux-x86_64
|
||||||
steps:
|
steps:
|
||||||
- uses: https://code.forgejo.org/actions/download-artifact@v4
|
- uses: https://code.forgejo.org/forgejo/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
path: dist/release
|
path: dist/release
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue