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

View file

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

View file

@ -10,16 +10,17 @@ builds:
goarch:
- amd64
- arm64
- 386
- "386"
ignore:
- goos: darwin
goarch: 386
goarch: "386"
archives:
- replacements:
darwin: macOS
- name_template: >-
{{ .ProjectName }}_{{- .Tag }}_{{- if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{ end }}_{{ .Arch }}
files:
- LICENSE
- README.md
rlcp: true
checksum:
name_template: "checksums.txt"
snapshot:
@ -30,3 +31,20 @@ changelog:
exclude:
- "^docs:"
- "^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