From a20c666ca64e20558af49c8b8e1992eb766e6afc Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Sat, 12 Aug 2023 22:57:54 -0400 Subject: [PATCH] chore: cleanup GH goreleaser file --- .github/workflows/release.yaml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 772fcb6..693bdbc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,13 +1,10 @@ name: goreleaser - on: push: tags: - '*' - permissions: contents: write - jobs: goreleaser: runs-on: ubuntu-latest @@ -19,21 +16,14 @@ jobs: - uses: actions/setup-go@v4 with: go-version: stable - # More assembly might be required: Docker logins, GPG, etc. It all depends - # on your needs. - # ${{ github.ref_name }} or $GITHUB_REF_NAME or ${{env.GITHUB_REF_NAME}} currently. - name: Generate release notes continue-on-error: true - run: ./scripts/release-notes.sh ${{github.ref_name}} > ./release_notes.txt + run: ./scripts/release-notes.sh ${{github.ref_name}} > ${{runner.temp}}/release_notes.txt - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: - # either 'goreleaser' (default) or 'goreleaser-pro': distribution: goreleaser version: latest - args: release --clean --release-notes=./release_notes.txt + args: release --clean --release-notes=${{runner.temp}}/release_notes.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' - # distribution: - # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}