fix: use stable asset names without version in release workflow
CI / cargo fmt --check (pull_request) Successful in 31s
CI / cargo clippy (pull_request) Successful in 25s
CI / cargo test (pull_request) Successful in 32s
CI / editor keymaps (pull_request) Successful in 1m35s
Release / build aarch64-unknown-linux-musl (push) Failing after 1m2s
Release / build x86_64-unknown-linux-gnu (push) Failing after 1m1s
Release / build aarch64-unknown-linux-gnu (push) Failing after 1m9s
Release / build x86_64-unknown-linux-musl (push) Failing after 1m3s
Release / gitea release (push) Has been skipped

Rename release assets to remove the version so that
/releases/latest/download/nuwiki-ls-{target}.tar.gz always resolves
correctly from the install scripts.
This commit is contained in:
2026-06-03 21:56:28 -03:00
parent d93637bb48
commit 678d62ac14
+4 -1
View File
@@ -77,7 +77,10 @@ jobs:
version="${GITHUB_REF_NAME#v}"
archive="nuwiki-ls-${version}-${{ matrix.target }}.tar.gz"
tar -czf "$archive" -C "target/${{ matrix.target }}/release" nuwiki-ls
echo "archive=$archive" >> "$GITHUB_OUTPUT"
# Use a stable name without version so /releases/latest/download/nuwiki-ls-{target}.tar.gz always resolves.
stable="nuwiki-ls-${{ matrix.target }}.tar.gz"
mv "$archive" "$stable"
echo "archive=$stable" >> "$GITHUB_OUTPUT"
- name: Upload build artifact
uses: actions/upload-artifact@v4