Skip to content

Commit

Permalink
test release binaries on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Sep 2, 2022
1 parent df8842e commit 99b5133
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- '*'
branches:
- 'master'

jobs:
goreleaser:
Expand All @@ -18,9 +20,17 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: 1.19
-
name: Run GoReleaser
name: test build binaries
if: github.ref_name == 'master'
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --snapshot --rm-dist
-
name: release binaries
if: github.ref_name != 'master'
uses: goreleaser/goreleaser-action@v3
with:
version: latest
Expand Down

0 comments on commit 99b5133

Please sign in to comment.