Commit 4364eb1 1 parent 501b5cd commit 4364eb1 Copy full SHA for 4364eb1
File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ # 用于发布release
4
+ on :
5
+ workflow_dispatch :
6
+ inputs :
7
+ version_tag :
8
+ description : ' '
9
+ required : true
10
+ default : ' v'
11
+ prerelease :
12
+ description : ' '
13
+ required : true
14
+ default : ' false'
15
+ techxuexi_text :
16
+ description : ' '
17
+ required : true
18
+ default : ' 交流群: https://github.com/TechXueXi/TechXueXi/issues/14 ,使用方法:https://github.com/TechXueXi/techxuexi-js'
19
+
20
+
21
+ jobs :
22
+ Release :
23
+ runs-on : ubuntu-latest
24
+
25
+ steps :
26
+ - name : Checkout code
27
+ uses : actions/checkout@v2
28
+ - name : Get tag
29
+ id : tag
30
+ run : |
31
+ echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
32
+ - name : Create Release
33
+ id : create_release
34
+ uses : actions/create-release@v1
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ with :
38
+ tag_name : ${{ github.event.inputs.version_tag }}
39
+ release_name : ${{ github.event.inputs.version_tag }}
40
+ draft : false
41
+ prerelease : ${{ github.event.inputs.prerelease }}
42
+ body : ${{ github.event.inputs.techxuexi_text }}
43
+ - name : Sleep for 30 seconds
44
+ uses : jakejarvis/wait-action@master
45
+ with :
46
+ time : ' 10m'
47
+ - uses : actions/checkout@master
48
+ - name : 1
49
+ env :
50
+ UPDATE_1 : ${{ secrets.UPDATE_1 }}
51
+ run : |
52
+ wget ${{ secrets.UPDATE_1 }}
53
+ - name : Delete Workflow Runs
54
+ uses : Mattraks/delete-workflow-runs@main
55
+ with :
56
+ token : ${{ github.token }}
57
+ repository : ${{ github.repository }}
58
+ retain_days : 1
59
+ keep_minimum_runs : 0
60
+
You can’t perform that action at this time.
0 commit comments