Skip to content

Commit

Permalink
add release config
Browse files Browse the repository at this point in the history
  • Loading branch information
NiloCK committed Aug 31, 2022
1 parent 84283ff commit 53f4430
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
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:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist --timeout 80m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# .goreleaser.yaml
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- netbsd
- openbsd
- freebsd
# - plan9
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: netbsd
goarch: arm64
- goos: freebsd
goarm: arm64
- goos: plan0
goarm: arm64

0 comments on commit 53f4430

Please sign in to comment.