File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 1
- .github /workflows /* - export-ignore
Original file line number Diff line number Diff line change
1
+ name : Auto Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
13
+ steps :
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Extract version from tag
18
+ run : |
19
+ VERSION=${GITHUB_REF#refs/tags/v}
20
+ echo "VERSION=${VERSION}" >> $GITHUB_ENV
21
+
22
+ - name : Create release zip archive
23
+ run : |
24
+ zip -r zrlong_v${{ env.VERSION }}.zip . -x ".*" -x "*/.*"
25
+
26
+ - name : Upload Release File
27
+ uses : softprops/action-gh-release@v2
28
+ if : startsWith(github.ref, 'refs/tags/')
29
+ with :
30
+ tag_name : ${{ github.ref }}
31
+ name : zrlong_v${{ env.VERSION }}
32
+ files : zrlong_v${{ env.VERSION }}.zip
33
+ body_path : ./release.md
Original file line number Diff line number Diff line change 1
- .github /
You can’t perform that action at this time.
0 commit comments