Skip to content

Commit

Permalink
Add goreleaser github action (#174)
Browse files Browse the repository at this point in the history
Requested in #171 (comment)
  • Loading branch information
breml authored Oct 1, 2022
1 parent c012671 commit e85ff8e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: goreleaser

on:
push:
tags:
- 'v[0-9]*'
workflow_dispatch:

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

-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ changelog:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: matryer
name: moq

0 comments on commit e85ff8e

Please sign in to comment.