diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 9db35a4..2453f94 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -1,12 +1,15 @@ name: goreleaser on: + pull_request: push: - tags: - - '*' + +permissions: + contents: write + jobs: goreleaser: - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout @@ -18,9 +21,12 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.17 + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser version: latest args: release --rm-dist env: