From 504a6b83ed16a5c7b86730a130292dc3c454427c Mon Sep 17 00:00:00 2001 From: Jayateertha Guruprasad Date: Tue, 17 May 2022 23:16:24 +0530 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dab4dc8..1e5d7b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,8 @@ name: goreleaser on: + pull_request: push: - # run only against tags - #tags: - # - '*' - -permissions: - contents: write - # packages: write - # issues: write jobs: goreleaser: @@ -20,14 +13,9 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - - name: Fetch all tags - run: git fetch --force --tags - name: Set up Go uses: actions/setup-go@v2 - with: - go-version: 1.18 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 @@ -35,7 +23,7 @@ jobs: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser version: latest - args: release -f goreleaser.yml --rm-dist + args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution