Skip to content

Commit

Permalink
Split GoReleaser CI into its own workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling committed Dec 14, 2021
1 parent c77e5a6 commit edb4dd1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous Integration - GoReleaser

on:
push:
branches: [main]
paths: [".goreleaser.yaml"]
pull_request:
branches: [main]
paths: [".goreleaser.yaml"]

jobs:
check-goreleaser:
name: Check GoReleaser Configuration
runs-on: ubuntu-20.04
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: Generate the sources
run: make generate-sources

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: --snapshot --rm-dist
6 changes: 0 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ jobs:

- name: Verify
run: make ci

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

0 comments on commit edb4dd1

Please sign in to comment.