File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: Deploy
2
2
3
3
on :
4
4
workflow_dispatch :
5
- push :
6
- branches : [master]
7
5
8
6
jobs :
9
7
build :
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - " *"
8
+
9
+ permissions : write-all
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout Dashboard code
16
+ uses : actions/checkout@v4
17
+ - uses : pnpm/action-setup@v4
18
+ with :
19
+ version : latest
20
+ - name : Setup Nodejs
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : ' 18.x'
24
+ cache : pnpm
25
+ - name : Install package and build
26
+ run : |
27
+ pnpm install --no-frozen-lockfile
28
+ pnpm build
29
+ - name : Compress files
30
+ run : |
31
+ mv public dashboard
32
+ zip -r dashboard.zip dashboard
33
+ - name : Release
34
+ uses : softprops/action-gh-release@v1
35
+ with :
36
+ files : dashboard.zip
37
+ prerelease : false
You can’t perform that action at this time.
0 commit comments