diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72b8c64..10c86b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,9 +5,7 @@ on: branches: - main - go_rewrite - pull_request_target: - branches: - - main + - actions permissions: contents: write @@ -28,14 +26,12 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.18 + id: go + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: - # either 'goreleaser' (default) or 'goreleaser-pro' - distribution: goreleaser version: latest args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution - # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} diff --git a/.goreleaser.yml b/.goreleaser.yml index e9e5184..7cfc3b2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,3 +6,4 @@ builds: - linux goarch: - amd64 + main: ./cmd