Skip to content

Commit

Permalink
goreleaser with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Reisinger committed Oct 30, 2021
1 parent b18392c commit f828ad8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Taken from https://goreleaser.com/ci/actions/
name: goreleaser

on:
pull_request:
push:
tags:
- '*'

permissions:
contents: write

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.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ cmd/checkip-linux-arm*
cmd/checkip-windows-amd64*
cmd/checkip

dist/
!.goreleaser.yml
dist/
!.github

0 comments on commit f828ad8

Please sign in to comment.