-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
- Loading branch information
Engin Diri
committed
Oct 19, 2021
1 parent
943c2b1
commit 2f6fbbd
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
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: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
project_name: gt | ||
|
||
snapshot: | ||
name_template: '{{ .Tag }}-SNAPSHOT' | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
dist: bin | ||
|
||
builds: | ||
- id: gt | ||
env: | ||
- CGO_ENABLED=0 | ||
main: ./cmd/gt | ||
ldflags: | ||
- -s | ||
- -w | ||
- -extldflags '-static' | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
|
||
archives: | ||
- format: binary | ||
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters