File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
+ workflow_run :
5
+ workflows : ["Test"]
6
+ types :
7
+ - completed
4
8
create :
5
9
tags :
6
10
- " v*.*.*"
7
11
8
12
jobs :
9
13
build-and-release :
10
- needs : test
11
- if : startsWith(github.ref, 'refs/tags/v')
14
+ if : github.event.workflow_run.conclusion == 'success'
12
15
runs-on : ubuntu-latest
16
+
17
+ permissions :
18
+ contents : write
19
+
13
20
steps :
14
21
- uses : actions/checkout@v4
15
22
24
31
- name : Create Release
25
32
id : create_release
26
33
uses : softprops/action-gh-release@v2
27
- if : startsWith(github.ref, 'refs/tags/')
28
34
with :
29
35
files : |
30
36
Release.txt
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ name: Test
2
2
3
3
on :
4
4
push :
5
- branches : [main]
5
+ branches :
6
+ - main
6
7
pull_request :
7
- branches : [main]
8
+ branches :
9
+ - main
8
10
create :
9
11
tags :
10
12
- " v*.*.*"
You can’t perform that action at this time.
0 commit comments