File tree Expand file tree Collapse file tree 2 files changed +32
-29
lines changed Expand file tree Collapse file tree 2 files changed +32
-29
lines changed Original file line number Diff line number Diff line change 1
- name : Create release
2
1
3
- # When a tag is pushed, create a release
4
- on :
5
- push :
6
- tags :
7
- - " v*" # Push events to matching v*, i.e. v1.0, v20.15.10
8
-
9
- jobs :
10
- build :
11
- name : Create Release
12
- runs-on : ubuntu-latest
13
- steps :
14
- - name : Checkout code
15
- uses : actions/checkout@master
16
- with :
17
- fetch-depth : 0 # Fetch all tags
18
-
19
- - name : Create Release for Tag
20
- id : release_tag
21
- uses : Akryum/release-tag@conventional
22
- env :
23
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
- with :
25
- tag_name : ${{ github.ref }}
26
- preset : angular # Use conventional-changelog preset
Original file line number Diff line number Diff line change 26
26
with :
27
27
name : LinuxOutput
28
28
path : bin/
29
- if-no-files-found : error
29
+ if-no-files-found : error
30
+ - name : Release
31
+ uses : softprops/action-gh-release@v1
32
+ if : startsWith(github.ref, 'refs/tags/')
33
+ with :
34
+ files : bin/*
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
37
MacOS :
31
38
runs-on : macOS-latest
32
39
steps :
47
54
with :
48
55
name : MacOutput
49
56
path : bin/
50
- if-no-files-found : error
57
+ if-no-files-found : error
58
+ - name : Release
59
+ uses : softprops/action-gh-release@v1
60
+ if : startsWith(github.ref, 'refs/tags/')
61
+ with :
62
+ files : bin/*
63
+ env :
64
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
65
52
66
iOS :
53
67
runs-on : macOS-latest
69
83
with :
70
84
name : IOSOutput
71
85
path : bin/
72
- if-no-files-found : error
86
+ if-no-files-found : error
87
+ - name : Release
88
+ uses : softprops/action-gh-release@v1
89
+ if : startsWith(github.ref, 'refs/tags/')
90
+ with :
91
+ files : bin/*
92
+ env :
93
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
94
74
95
Windows :
75
96
runs-on : windows-2019
@@ -99,5 +120,12 @@ jobs:
99
120
with :
100
121
name : WindowsOutput
101
122
path : bin/
102
- if-no-files-found : error
123
+ if-no-files-found : error
124
+ - name : Release
125
+ uses : softprops/action-gh-release@v1
126
+ if : startsWith(github.ref, 'refs/tags/')
127
+ with :
128
+ files : bin/*
129
+ env :
130
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103
131
You can’t perform that action at this time.
0 commit comments