Issue 78/homebrew (#79)

* .github: rename workflows to ci, cd and release

* .goreleaser: fix deprecation notices

* Goreleaser publishes tap to homebrew-arl

* .github: bump github-actions and go version to 1.20.x
This commit is contained in:
Aurélien Rainone 2023-02-11 00:38:53 +01:00 committed by GitHub
parent de215c3854
commit 23bdcb6ba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 13 deletions

View file

@ -1,4 +1,4 @@
name: goreleaser name: Continuous Deployment
on: on:
push: push:
@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v3
with: with:
go-version: "1.17.x" go-version: "1.20.x"
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2 uses: goreleaser/goreleaser-action@v2
with: with:
@ -27,4 +27,4 @@ jobs:
version: latest version: latest
args: release --rm-dist args: release --rm-dist
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}

View file

@ -1,5 +1,5 @@
on: [push, pull_request] on: [push, pull_request]
name: Tests name: Continuous Integration
jobs: jobs:
test: test:
strategy: strategy:
@ -7,9 +7,9 @@ jobs:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-go@v2 - uses: actions/setup-go@v3
with: with:
go-version: "1.17.x" go-version: "1.20.x"
- name: Tests - name: Tests
run: go test -race ./... run: go test -race ./...

View file

@ -10,16 +10,17 @@ builds:
goarch: goarch:
- amd64 - amd64
- arm64 - arm64
- 386 - "386"
ignore: ignore:
- goos: darwin - goos: darwin
goarch: 386 goarch: "386"
archives: archives:
- replacements: - name_template: >-
darwin: macOS {{ .ProjectName }}_{{- .Tag }}_{{- if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{ end }}_{{ .Arch }}
files: files:
- LICENSE - LICENSE
- README.md - README.md
rlcp: true
checksum: checksum:
name_template: "checksums.txt" name_template: "checksums.txt"
snapshot: snapshot:
@ -30,3 +31,20 @@ changelog:
exclude: exclude:
- "^docs:" - "^docs:"
- "^test:" - "^test:"
brews:
- name: gitmux
homepage: "https://github.com/arl/gitmux"
description: "Git in your tmux status bar."
license: "MIT"
url_template: "https://github.com/arl/gitmux/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
skip_upload: true
tap:
owner: arl
name: homebrew-arl
branch: main
commit_author:
name: goreleaser-bot
email: bot@goreleaser.com