Skip to content

Commit 2e63006

Browse files
authored
Merge pull request #106 from roxblnfk/feature/publis-assets
Add `publish assets` workflow
2 parents 43a10bf + b2efed0 commit 2e63006

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Publish Assets
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
upload-assets:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 20.x
18+
cache: 'npm'
19+
- run: yarn install
20+
- run: yarn generate
21+
22+
- name: Install zip
23+
uses: montudor/action-zip@v1
24+
25+
- name: Zip output
26+
run: zip -qq -r artifacts.zip .
27+
working-directory: 'dist'
28+
29+
- name: Upload build
30+
uses: softprops/action-gh-release@v1
31+
if: startsWith(github.ref, 'refs/tags/')
32+
with:
33+
files: 'dist/artifacts.zip'

0 commit comments

Comments
 (0)