Skip to content

Commit

Permalink
workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisvalentiner committed Oct 13, 2022
1 parent f9d1425 commit d18291f
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: goreleaser
on:
push:
tags:
- '*'
- v*
branches:
- main
pull_request:

permissions:
contents: write
Expand All @@ -27,19 +30,32 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
-
go-version: 1.19

-
name: Log in to registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT }}

-
name: Check GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
args: check

-
name: Build
uses: goreleaser/goreleaser-action@v3
with:
args: build --rm-dist

-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
distribution: goreleaser
version: latest
Expand Down

0 comments on commit d18291f

Please sign in to comment.