Skip to content

Commit

Permalink
chore: add goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: pancsta <[email protected]>

chore: add goreleaser
Signed-off-by: pancsta <[email protected]>

chore: add goreleaser
  • Loading branch information
pancsta committed Mar 4, 2024
1 parent 91d2d19 commit 4da6e9d
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: goreleaser

on:
push:
branches:
- main
tags:
- 'v*'

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
49 changes: 49 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# .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 }}"
files: [""]

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 4da6e9d

Please sign in to comment.