Skip to content

Commit

Permalink
add github action for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
rafibarash committed Sep 9, 2021
1 parent 4501230 commit 38731a7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,22 @@
name: goreleaser

on:
push:
tags: ["*"]

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- uses: actions/setup-go@v1
with:
go-version: 1.16.x
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 38731a7

Please sign in to comment.