File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Build Homebrew bottle
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
6
+ branches : [build-bottle]
5
7
6
8
env :
7
9
HOMEBREW_DEVELOPER : 1
51
53
if : steps.cache.outputs.cache-hit != 'true'
52
54
run : brew install-bundler-gems
53
55
56
+ - name : Uninstall existing formula
57
+ run : brew uninstall --force --ignore-dependencies --formula "$FORMULA_NAME"
58
+ env :
59
+ FORMULA_NAME : ${{ matrix.formula }}
60
+
54
61
- name : Install formula
55
62
run : brew install --build-bottle "$FORMULA_NAME"
56
63
env :
75
82
upload :
76
83
needs : build
77
84
runs-on : ubuntu-latest
85
+ permissions :
86
+ contents : write
87
+ pull-requests : write
78
88
steps :
79
89
- name : Set up Homebrew
80
90
id : set-up-homebrew
@@ -104,7 +114,7 @@ jobs:
104
114
- run : ls -l
105
115
106
116
- name : Upload bottles
107
- run :
brew pr-upload --root-url "$BOTTLE_ROOT_URL" --keep-old -- committer "Mislav Marohnić <[email protected] >" --warn-on-upload-failure
117
+ run :
brew pr-upload --root-url "$BOTTLE_ROOT_URL" --committer "Mislav Marohnić <[email protected] >" --warn-on-upload-failure
108
118
env :
109
119
HOMEBREW_GITHUB_PACKAGES_USER : mislav
110
120
HOMEBREW_GITHUB_PACKAGES_TOKEN : ${{ secrets.BOTTLE_UPLOAD_TOKEN }}
You can’t perform that action at this time.
0 commit comments