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

Add Homebrew TAP support #113

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add Homebrew TAP support #113

wants to merge 1 commit into from

Conversation

stloyd
Copy link
Contributor

@stloyd stloyd commented Nov 19, 2024

This requires adding a new secret to actions ACCESS_TOKEN with "repo" & "workflow" scopes.

RELEASE_TAG=${GITHUB_REF/refs\/tags\//}
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
- name: Update Homebrew formula
uses: mislav/bump-homebrew-formula-action@v3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand what this is for / what this is doing? I'm assuming something to do with brew, but it's something I'm unfamiliar with. Can you give me a TLDR? or point me to some docs to understand this process please?

class PhpPie < Formula
desc "PIE - the PHP Installer for Extensions"
homepage "https://github.com/php/pie"
url "https://github.com/php/pie/releases/download/0.2.0/pie.phar"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not hard-code this, the release process should be automated, and this will definitely be forgotten if it is not automated :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I went with making a separate repo for this, which would be expected to be written on by a bothttps://github.com/box-project/homebrew-box

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formula-path: homebrew/Formula/php-pie.rb
homebrew-tap: php/pie
download-url: https://github.com/php/pie/releases/download/${{ env.RELEASE_TAG }}/pie.phar
commit-message: |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this making a commit to php/pie? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants