brew_release #334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: brew_release | |
on: | |
workflow_run: | |
workflows: ["release"] | |
types: | |
- completed | |
jobs: | |
release_brew: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Release my project to my Homebrew tap | |
uses: Pivot-Studio/homebrew-releaser@main | |
with: | |
# The name of the homebrew tap to publish your formula to as it appears on GitHub. | |
# Required - strings. | |
homebrew_owner: Pivot-Studio | |
homebrew_tap: homebrew-tap | |
# The name of the folder in your homebrew tap where formula will be committed to. | |
# Default is shown - string. | |
# formula_folder: pivot-lang | |
# The GitHub Token (saved as a repo secret) that has `repo` permissions for the homebrew tap you want to release to. | |
# Required - string. | |
github_token: ${{ secrets.PAT }} | |
# Git author info used to commit to the homebrew tap. | |
# Defaults are shown - strings. | |
commit_owner: pivot-lang authors | |
commit_email: 1769712655@qq.com | |
# Custom dependencies in case other formulas are needed to build the current one. | |
# Optional - multiline string. | |
# depends_on: | | |
# "llvm@14" | |
# Custom install command for your formula. | |
# Required - string. | |
install: | | |
lib.install Dir["./planglib"] | |
lib.install "./libvm.a" | |
lib.install "./libvm.dylib" | |
bin.install "./plc" | |
# Custom test command for your formula so you can run `brew test`. | |
# Optional - string. | |
# test: 'assert_match("my script output", shell_output("my-script-command"))' | |
# Adds URL and checksum targets for different OS and architecture pairs. Using this option assumes | |
# a tar archive exists on your GitHub repo with the following URL pattern (this cannot be customized): | |
# https://github.com/{GITHUB_OWNER}/{REPO_NAME}/releases/download/{TAG}/{REPO_NAME}-{VERSION}-{OPERATING_SYSTEM}-{ARCHITECTURE}.tar.gz' | |
# Darwin AMD pre-existing path example: https://github.com/justintime50/myrepo/releases/download/v1.2.0/myrepo-1.2.0-darwin-amd64.tar.gz | |
# Linux ARM pre-existing path example: https://github.com/justintime50/myrepo/releases/download/v1.2.0/myrepo-1.2.0-linux-arm64.tar.gz | |
# Optional - booleans. | |
target_darwin_amd64: false | |
target_darwin_arm64: true | |
# target_linux_amd64: true | |
# target_linux_arm64: false | |
# Update your homebrew tap's README with a table of all projects in the tap. | |
# This is done by pulling the information from all your formula.rb files - eg: | |
# | |
# | Project | Description | Install | | |
# | ------------------------------------------ | ------------ | ------------------------ | | |
# | [formula_1](https://github.com/user/repo1) | helpful text | `brew install formula_1` | | |
# | [formula_2](https://github.com/user/repo2) | helpful text | `brew install formula_2` | | |
# | [formula_3](https://github.com/user/repo3) | helpful text | `brew install formula_3` | | |
# | |
# Simply place the following in your README or wrap your project in these comment tags: | |
# <!-- project_table_start --> | |
# TABLE HERE | |
# <!--project_table_end --> | |
# | |
# Finally, mark `update_readme_table` as `true` in your GitHub Action config and we'll do the work of building a custom table for you. | |
# Default is `false` - boolean. | |
update_readme_table: true | |
# Skips committing the generated formula to a homebrew tap (useful for local testing). | |
# Default is shown - boolean. | |
skip_commit: false | |
# Logs debugging info to console. | |
# Default is shown - boolean. | |
debug: true |