Skip to content

Commit f699710

Browse files
committed
upload
1 parent 385d3d6 commit f699710

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

.github/workflows/build-bottle.yml

+42-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ env:
88
HOMEBREW_GITHUB_ACTIONS: 1
99
HOMEBREW_NO_AUTO_UPDATE: 1
1010
HOMEBREW_NO_INSTALL_FROM_API: 1
11-
HOMEBREW_NO_BUILD_ERROR_ISSUES: 1
11+
HOMEBREW_NO_INSTALL_CLEANUP: 1
12+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
1213
BOTTLE_ROOT_URL: https://ghcr.io/v2/rbenv/tap
1314

1415
defaults:
@@ -21,7 +22,7 @@ permissions:
2122
contents: read
2223

2324
jobs:
24-
bottle:
25+
build:
2526
strategy:
2627
matrix:
2728
@@ -70,3 +71,42 @@ jobs:
7071
path: |
7172
*.bottle.*.tar.gz
7273
*.bottle.json
74+
75+
upload:
76+
needs: build
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Set up Homebrew
80+
id: set-up-homebrew
81+
uses: Homebrew/actions/setup-homebrew@master
82+
with:
83+
core: false
84+
cask: false
85+
test-bot: false
86+
87+
- name: Cache Homebrew Bundler RubyGems
88+
id: cache
89+
uses: actions/cache@v3
90+
with:
91+
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
92+
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
93+
restore-keys: ${{ runner.os }}-rubygems-
94+
95+
- name: Install Homebrew Bundler RubyGems
96+
if: steps.cache.outputs.cache-hit != 'true'
97+
run: brew install-bundler-gems
98+
99+
- name: Download artifacts
100+
uses: actions/download-artifact@v4
101+
with:
102+
merge-multiple: true
103+
104+
- run: ls -l
105+
106+
- name: Upload bottles
107+
run: brew pr-upload --root-url "$BOTTLE_ROOT_URL" --keep-old --committer "Mislav Marohnić <[email protected]>" --warn-on-upload-failure
108+
env:
109+
HOMEBREW_GITHUB_PACKAGES_USER: mislav
110+
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ secrets.BOTTLE_UPLOAD_TOKEN }}
111+
112+
- run: git log -p origin/HEAD..

0 commit comments

Comments
 (0)