Skip to content

Commit

Permalink
feat: add goreleaser github actions (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsega authored Dec 23, 2022
1 parent d3c7187 commit a84180a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: goreleaser

on:
push:
tags:
- '*'

env:
GO_VERSION: "~1.18"

jobs:
goreleaser:
name: Release pre-build binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a84180a

Please sign in to comment.