Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix macOS deployment workflow #73

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,13 @@ jobs:
uses: actions/checkout@v4
with:
repository: '${{ secrets.HOMEBREW_TAP_REPO }}'
fetch-depth: 0 # The entire repo history, so we can push an update
# To push to this repo, an explicit token is used to authenticate.
persist-credentials: false
# Get the entire repo history, so we can push an update.
fetch-depth: 0
# To push to the tap repo, an explicit token is used to authenticate,
# and we persist it for the later step where we push. Nothing is
# executed in this job. Files are copied and staged only.
token: '${{ secrets.HOMEBREW_DEPLOY_TOKEN }}'
persist-credentials: true

- name: Wipe source and formula folders
run: |
Expand Down Expand Up @@ -245,9 +249,4 @@ jobs:
git commit -m "Release $PACKAGE_VERSION"

- name: Push homebrew repo
run: |
# Remove default authentication headers from GitHub Actions
# environment, since we're pushing to a different repo as a different
# user.
git config --unset-all http.https://github.com/.extraheader
git push https://shaka-bot:${{ secrets.HOMEBREW_DEPLOY_TOKEN }}@github.com/${{ secrets.HOMEBREW_TAP_REPO }}
run: git push