Skip to content

Commit 16beacb

Browse files
ci(release): attach portable application archive
1 parent 32ab773 commit 16beacb

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ jobs:
3131
push: true
3232
tags: ${{ steps.meta.outputs.tags }}
3333
labels: ${{ steps.meta.outputs.labels }}
34+
- name: Pack portable release
35+
shell: bash
36+
run: |
37+
set -euo pipefail
38+
archive="ROOT-${GITHUB_REF_NAME}.zip"
39+
git archive --format=zip --output "$archive" "$GITHUB_SHA" -- \
40+
README.md Dockerfile docker-compose.yml index.html robots.txt sitemap.xml serve.py \
41+
app css data/cves_public.json data/cves_public.provenance.json js licenses source
42+
echo "RELEASE_ARCHIVE=$archive" >> "$GITHUB_ENV"
3443
- env:
3544
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
run: gh release create "$GITHUB_REF_NAME" --title "RØOT $GITHUB_REF_NAME" --generate-notes
45+
run: >-
46+
gh release create "$GITHUB_REF_NAME"
47+
"$RELEASE_ARCHIVE#Portable application bundle"
48+
--title "RØOT $GITHUB_REF_NAME"
49+
--generate-notes

0 commit comments

Comments
 (0)