File tree 2 files changed +48
-0
lines changed
2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ changelog :
2
+ exclude :
3
+ authors :
4
+ - dependabot
Original file line number Diff line number Diff line change
1
+ # .github/workflows/publish-release.yml
2
+ name : Publish release
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ jobs :
9
+ check-permission :
10
+ name : check permission
11
+ runs-on : ubuntu-latest
12
+ outputs :
13
+ permission : ${{ steps.check.outputs.permission }}
14
+ steps :
15
+ - id : check
16
+ uses : shogo82148/actions-check-permissions@v1
17
+ env :
18
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
+
20
+ publish :
21
+ name : Publish release
22
+ runs-on : ubuntu-latest
23
+ permissions :
24
+ contents : write
25
+ pull-requests : read
26
+ needs :
27
+ - check-permission
28
+ steps :
29
+ # #########################
30
+ # Checkout the code base #
31
+ # #########################
32
+ - name : Checkout code
33
+ uses : actions/checkout@v4
34
+ # #########################
35
+ # Release from tags #
36
+ # #########################
37
+ - name : Publish Release
38
+ id : publish_release
39
+ uses : ghalactic/github-release-from-tag@v5
40
+ if : github.ref_type == 'tag'
41
+ with :
42
+ prerelease : " false"
43
+ reactions : rocket
44
+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments