Skip to content

Commit 407fb53

Browse files
committed
Add 'Build Release' GitHub Actions
1 parent ee6b28e commit 407fb53

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Release
2+
3+
on:
4+
push:
5+
tags:
6+
v\d+\.\d+\.\d+
7+
8+
jobs:
9+
tagged-release:
10+
11+
runs-on:
12+
ubuntu-latest
13+
14+
steps:
15+
- name: "Getting the sources"
16+
uses: actions/checkout@v2
17+
18+
- name: "Build"
19+
run: |
20+
npm install
21+
npm run build --prod
22+
23+
- name: "Create package"
24+
run: |
25+
cd build
26+
zip -r ../${GITHUB_REF#refs/tags/}.zip *
27+
cd ..
28+
29+
- uses: "marvinpinto/action-automatic-releases@latest"
30+
with:
31+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
32+
prerelease: false
33+
files: |
34+
*.zip

0 commit comments

Comments
 (0)