Skip to content

Commit

Permalink
added goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeljkoBenovic committed Mar 10, 2024
1 parent 8cd1ee8 commit f53291d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GO Releaser

on:
push:
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: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
- name: Release
run: |
goreleaser release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
*-backup
*.yaml
conf.yaml
multi.yaml
24 changes: 24 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
binary: gombak
goarch:
- amd64
- "386"
goos:
- linux
- darwin
- windows
archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit f53291d

Please sign in to comment.