Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Publishes the cask to aartinian/homebrew-tap, which GITHUB_TOKEN can't write to.
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
24 changes: 24 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,27 @@ release:
- glob: ./scripts/install.sh
- glob: ./cvpnctl.yaml.example
- glob: ./base.ovpn.example

# brew install aartinian/tap/cvpnctl (macOS only)
homebrew_casks:
- name: cvpnctl
binaries: [cvpnctl]
homepage: https://github.com/aartinian/cvpnctl
description: Manage AWS Client VPN user certificates with EasyRSA
repository:
owner: aartinian
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
dependencies:
- formula: easy-rsa
hooks:
post:
# Remove the quarantine attribute so macOS allows execution
install_steps: |
on_macos do
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/cvpnctl"]
end
caveats: |
EasyRSA came with it: set easyrsa.path in cvpnctl.yaml to the output of
echo "$(brew --prefix)/bin"
Getting started: https://github.com/aartinian/cvpnctl#quick-start
Loading