Skip to content

Commit

Permalink
Merge pull request #11 from seachicken/issue2
Browse files Browse the repository at this point in the history
Suport darwin-arm64
  • Loading branch information
gennaro-tedesco authored Feb 1, 2022
2 parents 7c4c5b9 + c7fec12 commit f4b8d06
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ on:
push:
tags:
- "v*"
permissions:
contents: write

jobs:
release:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cli/gh-extension-precompile@v1
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
archives:
- name_template: "{{ .Os }}-{{ .Arch }}"
format: binary
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
use: github-native

0 comments on commit f4b8d06

Please sign in to comment.