Skip to content

Commit

Permalink
Tweaks to workflow for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowes committed Aug 8, 2021
1 parent ab4ffcb commit 80a366f
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/go.yml
@@ -1,3 +1,5 @@
# NOTE: this is a duplicate of the release workflow, without the release step.
# They should be kept in sync or somehow deduplicated.
name: Go

on:
Expand All @@ -9,6 +11,22 @@ on:

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

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

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist --snapshot

test:
runs-on: ubuntu-latest
steps:
Expand All @@ -33,7 +51,8 @@ jobs:

release:
runs-on: ubuntu-latest
needs: [ test, lint ]
needs: [ build, test, lint ]
if: startsWith(github.ref, 'refs/tags/') # Prevent running releaser on both main and tag
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 80a366f

Please sign in to comment.