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:
|
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 }}
|
||||||
|
|
@ -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 ./...
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue