Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jan 10, 2025
1 parent 385d3d6 commit f699710
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/build-bottle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ env:
HOMEBREW_GITHUB_ACTIONS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_FROM_API: 1
HOMEBREW_NO_BUILD_ERROR_ISSUES: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
BOTTLE_ROOT_URL: https://ghcr.io/v2/rbenv/tap

defaults:
Expand All @@ -21,7 +22,7 @@ permissions:
contents: read

jobs:
bottle:
build:
strategy:
matrix:
formula: [openssl@1.0, openssl@1.1]
Expand Down Expand Up @@ -70,3 +71,42 @@ jobs:
path: |
*.bottle.*.tar.gz
*.bottle.json
upload:
needs: build
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: false
cask: false
test-bot: false

- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-

- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

- name: Download artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true

- run: ls -l

- name: Upload bottles
run: brew pr-upload --root-url "$BOTTLE_ROOT_URL" --keep-old --committer "Mislav Marohnić <git@mislav.net>" --warn-on-upload-failure
env:
HOMEBREW_GITHUB_PACKAGES_USER: mislav
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ secrets.BOTTLE_UPLOAD_TOKEN }}

- run: git log -p origin/HEAD..

0 comments on commit f699710

Please sign in to comment.