Keep the Windows package zipped on the way to the release

download-artifact unpacks a zip it detects, so the Windows package arrived in
dist/ as loose files (Starter.exe, the native dlls, startercfg/) and gh tried
to upload the startercfg directory as a release asset. skip-decompress leaves
the artifact as the file it was uploaded as.

The two packages are also named explicitly instead of globbing dist/*, so a
missing one fails the step rather than quietly publishing half a release.
This commit is contained in:
maj00r
2026-08-25 23:50:59 +02:00
parent 5d29d6031d
commit 20da0a4f77

View File

@@ -128,12 +128,15 @@ jobs:
steps:
# v8, not v7: the packages are uploaded with archive: false, and only v8
# can pull those non-zipped artifacts back down.
# can pull those non-zipped artifacts back down. skip-decompress keeps the
# Windows .zip a file - unpacked, its contents would end up in the release
# instead of the package.
- name: Collect the packages
uses: actions/download-artifact@v8
with:
path: dist
merge-multiple: true
skip-decompress: true
# Recreated rather than edited, so the tag follows its branch and no asset
# from an older build is left behind.
@@ -146,7 +149,9 @@ jobs:
ls -l dist
gh release delete "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --yes --cleanup-tag || true
gh release create "$RELEASE_TAG" dist/* \
gh release create "$RELEASE_TAG" \
dist/StarterNG-windows-x64.zip \
dist/StarterNG-linux-x64.tar.gz \
--repo "$GITHUB_REPOSITORY" \
--target "$GITHUB_SHA" \
--prerelease \