-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (53 loc) · 2.87 KB
/
homebrew.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release Homebrew Tap
on:
release:
# Start Homebrew Releaser when a new GitHub release of the CLI package is _published_
types: [published]
jobs:
homebrew-releaser:
runs-on: ubuntu-latest
name: homebrew-releaser
steps:
- name: Add published release to Homebrew Tap
uses: Justintime50/homebrew-releaser@v2
with:
# Explicitly set the version to avoid Justintime50/homebrew-releaser#39 (wrong auto-detection of "64" as version)
version: ${{ github.event.release.tag_name }}
# The name of the homebrew tap to publish your formula to as it appears on GitHub.
# Required - strings
homebrew_owner: localstack
homebrew_tap: homebrew-tap
# Logs debugging info to console.
# Default is shown - boolean
debug: true
# The name of the folder in your homebrew tap where formula will be committed to.
# Default is shown - string
formula_folder: Formula
# The Personal Access Token (saved as a repo secret) that has `repo` permissions for the repo running the action AND Homebrew tap you want to release to.
# Required - string
github_token: ${{ secrets.LOCALSTACK_GITHUB_TOKEN }}
# Git author info used to commit to the homebrew tap.
# Defaults are shown - strings
commit_owner: localstack-bot
commit_email: [email protected]
# Custom install command for your formula.
# Required - string
# The indentation is on purpose to fix the multiline indentation in the final formula
install: |
libexec.install Dir["*"]
bin.install_symlink libexec/"localstack"
generate_completions_from_executable(bin/"localstack", "completion")
# Custom test command for your formula so you can run `brew test`.
# Optional - string
test: |
assert_match /LocalStack Command Line Interface/, shell_output("#{bin}/localstack --help", 0)
# 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: true
target_darwin_arm64: true
target_linux_amd64: true
target_linux_arm64: true