Skip to content

Commit 10df243

Browse files
committed
fix(release): upload only packaged artifacts
Signed-off-by: JSONbored <49853598+JSONbored@users.noreply.github.com>
1 parent 18ec4d0 commit 10df243

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ jobs:
141141
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
142142
with:
143143
name: release-${{ matrix.os }}-${{ matrix.target }}
144-
path: dist/nightward_*
144+
path: |
145+
dist/nightward_*.tar.gz
146+
dist/nightward_*.zip
147+
dist/nightward_*.sbom.json
145148
if-no-files-found: error
146149

147150
publish:

scripts/test-release-scripts.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ grep -q "macos-15-intel" "${repo_root}/.github/workflows/release.yml"
3131
grep -q "aarch64-unknown-linux-gnu" "${repo_root}/.github/workflows/release.yml"
3232
grep -q "x86_64-apple-darwin" "${repo_root}/.github/workflows/release.yml"
3333
grep -q 'NIGHTWARD_VERSION="${version}"' "${repo_root}/.github/workflows/release.yml"
34+
grep -q "dist/nightward_\\*.tar.gz" "${repo_root}/.github/workflows/release.yml"
35+
grep -q "dist/nightward_\\*.zip" "${repo_root}/.github/workflows/release.yml"
36+
if grep -q "path: dist/nightward_\\*" "${repo_root}/.github/workflows/release.yml"; then
37+
echo "expected release upload to exclude staging directories" >&2
38+
exit 1
39+
fi
3440

3541
mkdir -p "${tmp}/target/release"
3642
printf '#!/usr/bin/env bash\nprintf "0.1.0\\n"\n' >"${tmp}/target/release/nightward"

0 commit comments

Comments
 (0)