Skip to content

Commit a9c2bfb

Browse files
committed
Limit public release uploads to canonical assets
1 parent 24abcb4 commit a9c2bfb

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,18 @@ jobs:
102102
gh release create "${TAG}" --verify-tag --title "${TITLE}" --notes "Technical preview release. Canonical release metadata lives in dist/ and release-manifest.json."
103103
fi
104104
fi
105-
mapfile -t files < <(find dist -type f ! -path 'dist/sheaft_*_v*/*' | sort)
105+
mapfile -t files < <(
106+
{
107+
find dist -maxdepth 1 -type f \( \
108+
-name 'sheaft_*.tar.gz' -o \
109+
-name 'sheaft_*.zip' -o \
110+
-name 'sheaft_*.sbom.json' -o \
111+
-name 'sheaft_*_checksums.txt' -o \
112+
-name 'sheaft-default-config-pack_*.tar.gz' \
113+
\)
114+
find dist/charts -maxdepth 1 -type f -name 'sheaft-*.tgz'
115+
} | sort
116+
)
106117
files+=("compatibility-manifest.json")
107118
files+=("release-manifest.json")
108119
gh release upload "${TAG}" "${files[@]}" --clobber

0 commit comments

Comments
 (0)