Skip to content

Commit 96ce424

Browse files
Create release-asset.yml
1 parent f409b2f commit 96ce424

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Attach stable asset to release
2+
on:
3+
release:
4+
types: [published, edited]
5+
6+
jobs:
7+
upload-asset:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write # required to upload assets
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0 # ensures tags/metadata are present
15+
16+
17+
# Create a clean tarball with a top-level folder "designer/"
18+
- name: Build tarball
19+
run: |
20+
mkdir -p out/designer
21+
cp -r server.py app.js diagram.js help-content.html help-modal.js index.html io.js style.css ui.js out/designer/
22+
tar -czf designer.tar.gz -C out designer
23+
24+
# Upload as the stable-named asset
25+
- name: Upload asset
26+
uses: softprops/action-gh-release@v2
27+
with:
28+
files: designer.tar.gz
29+
overwrite: true

0 commit comments

Comments
 (0)