File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 13
13
description : " Version"
14
14
required : true
15
15
default : " 0.1.0"
16
+ do-homebrew :
17
+ type : boolean
18
+ description : " Publish to Homebrew"
19
+ required : false
20
+ default : true
21
+ do-github-release :
22
+ type : boolean
23
+ description : " Create a GitHub release"
24
+ required : false
25
+ default : true
16
26
17
27
jobs :
18
28
# call out to build.yml
40
50
publish-to-brew :
41
51
name : post / homebrew
42
52
runs-on : macos-latest
53
+ if : (github.event_name == 'push' && contains(github.event.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch' && ${{ github.event.inputs.do-homebrew }})
43
54
steps :
44
55
- name : Get version from tag
45
56
if : github.event_name == 'push' && contains(github.event.ref, 'refs/tags/v')
61
72
release :
62
73
name : post / github release
63
74
runs-on : ubuntu-latest
75
+ if : (github.event_name == 'push' && contains(github.event.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch') && ${{ github.event.inputs.do-github-release }})
64
76
steps :
65
77
- uses : actions/checkout@v4
66
78
- name : setup | rust
88
100
id : create_release
89
101
uses : actions/create-release@v1
90
102
env :
91
- GITHUB_TOKEN : ${{ secrets.GH_PAT }}
103
+ GITHUB_TOKEN : ${{ secrets.COMMITTER_TOKEN }}
92
104
with :
93
105
# This pulls from the "Get Changelog Entry" step above, referencing it's ID to get its outputs object.
94
106
# See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
You can’t perform that action at this time.
0 commit comments