mirror of
https://github.com/arl/gitmux.git
synced 2026-09-10 07:26:18 -04:00
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:
parent
de215c3854
commit
23bdcb6ba4
|
|
@ -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 }}
|
||||
|
|
@ -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 ./...
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue