Skip to content

Commit

Permalink
chore: added brew install (#73)
Browse files Browse the repository at this point in the history
* chore: added brew install

and changes from binary release to tarballs

* fix: added github token with correct priviledges to release
  • Loading branch information
lindell authored Feb 19, 2021
1 parent 1aff85c commit 3f56a4a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GENERAL_GITHUB_SECRET }} # The tokens needs access to another repo, so the secret.GITHUB_SECRET won't suffice
if: ${{ steps.release.outputs.release_created }}
15 changes: 14 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ archives:
amd64: x86_64
arm: ARM
arm64: ARM64
format: binary
checksum:
name_template: "checksums.txt"
snapshot:
Expand All @@ -36,3 +35,17 @@ changelog:
exclude:
- "^docs:"
- "^test:"
brews:
- name: multi-gitter
tap:
owner: lindell
name: homebrew-multi-gitter
download_strategy: CurlDownloadStrategy.
goarm: 6
commit_author:
name: Johan Lindell
email: [email protected]
description: "Update multiple repositories in bulk."
license: "MIT"
test: |
system "#{bin}/program version"
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ execute() {
http_download "${tmpdir}/${CHECKSUM}" "${CHECKSUM_URL}"
hash_sha256_verify "${tmpdir}/${FILENAME}" "${tmpdir}/${CHECKSUM}"
srcdir="${tmpdir}"
(cd "${tmpdir}" && untar "${TARBALL}")
test ! -d "${BINDIR}" && install -d "${BINDIR}"
for binexe in $BINARIES; do
if [ "$OS" = "windows" ]; then
Expand Down

0 comments on commit 3f56a4a

Please sign in to comment.