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