Skip to content

Commit

Permalink
chore: add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta committed Mar 4, 2024
1 parent 91d2d19 commit 42bff77
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: goreleaser

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ go.work

# local dev
/.dev
/dist
/docs/cookbook.md
/tools/am-dbg/am-dbg
/*.log
48 changes: 48 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# .goreleaser.yml

builds:
-
id: "am-dbg"
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
main: ./tools/am-dbg/main.go
binary: am-dbg

archives:
-
id: "archive"
format: tar.gz
name_template: "am-dbg_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

checksum:
name_template: 'checksums.txt'

release:
github:
owner: pancsta
name: asyncmachine-go
draft: true
replace_existing_draft: true

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- '^refactor:'
- '^style:'
- '^ci:'
- '^perf:'
- '^revert:'
snapshot:
name_template: "{{ .Tag }}-next"

0 comments on commit 42bff77

Please sign in to comment.