Skip to content

Commit 914e425

Browse files
build: add action to upload assets with dist/ folder to the tags
1 parent 3675127 commit 914e425

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Upload assets to tags
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
if: startsWith(github.ref, 'refs/tags/')
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: 14
14+
- run: npm ci
15+
- run: npm test
16+
- run: npm run build
17+
- name: Upload
18+
uses: softprops/action-gh-release@v1
19+
with:
20+
files: dist/*

0 commit comments

Comments
 (0)