Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kataev committed Apr 25, 2023
1 parent 7102079 commit b9cb9e0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: goreleaser

on:
push:
tags:
- "v*.*.*"

jobs:
goreleaser:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- uses: goreleaser/goreleaser-action@v1
with:
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
@@ -1 +1,2 @@
*.out
dist/
22 changes: 22 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
project_name: tg
builds:
- id: tg
main: ./cmd/tg
binary: tg
goos:
- darwin
- linux
goarch:
- amd64
- arm64
archives:
- id: default
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
checksum:
name_template: '{{ .ProjectName }}_v{{ .Version }}_checksums.txt'
algorithm: sha256
changelog:
use: github-native
source:
enabled: false

0 comments on commit b9cb9e0

Please sign in to comment.