From edb4dd17caa9b05b7780b198715cc3d0c94672e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraci=20Paix=C3=A3o=20Kr=C3=B6hling?= Date: Tue, 14 Dec 2021 17:26:27 +0100 Subject: [PATCH] Split GoReleaser CI into its own workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juraci Paixão Kröhling --- .github/workflows/ci-goreleaser.yaml | 33 ++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 6 ----- 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ci-goreleaser.yaml diff --git a/.github/workflows/ci-goreleaser.yaml b/.github/workflows/ci-goreleaser.yaml new file mode 100644 index 00000000..92160d1b --- /dev/null +++ b/.github/workflows/ci-goreleaser.yaml @@ -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 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1763894e..ca2448bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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