Skip to content

Commit

Permalink
Added Go Releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiljohn10 committed Nov 25, 2022
1 parent 3a22534 commit 78fecd5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: goscon release

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

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ">=1.19.3"
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ builds:
goarch: arm64
archives:
- replacements:
darwin: Darwin
darwin: MacOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
arm: Arm
arm64: Arm64
checksum:
name_template: "checksums.txt"
snapshot:
Expand Down

0 comments on commit 78fecd5

Please sign in to comment.