7
7
workflow_dispatch :
8
8
9
9
env :
10
- VERSION : 1.0. ${{ github.run_number }} # 动态版本号,基于当前工作流运行次数
10
+ VERSION : ${{ github.ref_name }} # 动态版本号,基于当前工作流运行次数
11
11
12
12
jobs :
13
13
linux :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout code
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
with :
19
19
fetch-depth : 0
20
20
30
30
yarn make
31
31
32
32
- name : Upload Linux Artifact
33
- uses : actions/upload-artifact@v3
33
+ uses : actions/upload-artifact@v4
34
34
with :
35
35
name : linux-artifact
36
36
path : out/make
39
39
runs-on : windows-latest
40
40
steps :
41
41
- name : Checkout code
42
- uses : actions/checkout@v3
42
+ uses : actions/checkout@v4
43
43
with :
44
44
fetch-depth : 0
45
45
54
54
run : yarn make
55
55
56
56
- name : Upload Windows Artifact
57
- uses : actions/upload-artifact@v3
57
+ uses : actions/upload-artifact@v4
58
58
with :
59
59
name : windows-artifact
60
60
path : out/make
63
63
runs-on : macos-latest
64
64
steps :
65
65
- name : Checkout code
66
- uses : actions/checkout@v3
66
+ uses : actions/checkout@v4
67
67
with :
68
68
fetch-depth : 0
69
69
78
78
run : yarn make
79
79
80
80
- name : Upload macOS Artifact
81
- uses : actions/upload-artifact@v3
81
+ uses : actions/upload-artifact@v4
82
82
with :
83
83
name : macos-artifact
84
84
path : out/make
@@ -88,59 +88,54 @@ jobs:
88
88
runs-on : ubuntu-latest
89
89
steps :
90
90
- name : Download Linux Artifact
91
- uses : actions/download-artifact@v3
91
+ uses : actions/download-artifact@v4
92
92
with :
93
93
name : linux-artifact
94
94
path : dist/linux
95
95
96
96
- name : Download Windows Artifact
97
- uses : actions/download-artifact@v3
97
+ uses : actions/download-artifact@v4
98
98
with :
99
99
name : windows-artifact
100
100
path : dist/windows
101
101
102
102
- name : Download macOS Artifact
103
- uses : actions/download-artifact@v3
103
+ uses : actions/download-artifact@v4
104
104
with :
105
105
name : macos-artifact
106
106
path : dist/macos
107
107
108
- - name : Create Release
109
- uses : actions/create-release@v1
110
- env :
111
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108
+ - name : GH Release
109
+
112
110
with :
113
- tag_name : v${{ env.VERSION }}
114
- release_name : Git Helper v${{ env.VERSION }}
115
- draft : false
116
- prerelease : false
117
-
118
- - name : Upload Linux Asset
119
- uses : actions/upload-release-asset@v1
120
- env :
121
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
122
- with :
123
- upload_url : ${{ steps.create_release.outputs.upload_url }}
124
- asset_path : dist/linux
125
- asset_name : linux.zip
126
- asset_content_type : application/zip
127
-
128
- - name : Upload Windows Asset
129
- uses : actions/upload-release-asset@v1
130
- env :
131
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132
- with :
133
- upload_url : ${{ steps.create_release.outputs.upload_url }}
134
- asset_path : dist/windows
135
- asset_name : windows.zip
136
- asset_content_type : application/zip
137
-
138
- - name : Upload macOS Asset
139
- uses : actions/upload-release-asset@v1
140
- env :
141
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
142
- with :
143
- upload_url : ${{ steps.create_release.outputs.upload_url }}
144
- asset_path : dist/macos
145
- asset_name : macos.zip
146
- asset_content_type : application/zip
111
+ files : Release.txt
112
+
113
+ # - name: Upload Linux Asset
114
+ # uses: actions/upload-release-asset@v1
115
+ # env:
116
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117
+ # with:
118
+ # upload_url: ${{ steps.create_release.outputs.upload_url }}
119
+ # asset_path: dist/linux
120
+ # asset_name: linux.zip
121
+ # asset_content_type: application/zip
122
+
123
+ # - name: Upload Windows Asset
124
+ # uses: actions/upload-release-asset@v1
125
+ # env:
126
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127
+ # with:
128
+ # upload_url: ${{ steps.create_release.outputs.upload_url }}
129
+ # asset_path: dist/windows
130
+ # asset_name: windows.zip
131
+ # asset_content_type: application/zip
132
+
133
+ # - name: Upload macOS Asset
134
+ # uses: actions/upload-release-asset@v1
135
+ # env:
136
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137
+ # with:
138
+ # upload_url: ${{ steps.create_release.outputs.upload_url }}
139
+ # asset_path: dist/macos
140
+ # asset_name: macos.zip
141
+ # asset_content_type: application/zip
0 commit comments