File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ build-and-release :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Set up Node.js
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version : ' 18'
19
+
20
+ - name : Install dependencies
21
+ run : npm install
22
+
23
+ - name : Build package
24
+ run : npm run build
25
+
26
+ - name : Create release tarball
27
+ id : create_tarball
28
+ run : |
29
+ tar -czvf dist/${{ github.ref_name }}.tgz dist/
30
+
31
+ - name : Upload release asset
32
+ uses : actions/upload-release-asset@v3
33
+ with :
34
+ upload_url : ${{ github.event.release.upload_url }}
35
+ asset_path : dist/${{ github.ref_name }}.tgz
36
+ asset_name : ${{ github.ref_name }}.tgz
37
+ asset_content_type : application/gzip
You can’t perform that action at this time.
0 commit comments