Skip to content

Commit 2ee206d

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

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+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: 14
13+
- run: npm ci
14+
- run: npm test
15+
- run: npm run build
16+
- name: Upload
17+
uses: softprops/action-gh-release@v1
18+
if: startsWith(github.ref, 'refs/tags/')
19+
with:
20+
files: dist/*

0 commit comments

Comments
 (0)