diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4b0c987..8647689 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,9 +26,14 @@ jobs: - name: Test run: make test - - name: GoReleaser Check + - name: Install GoReleaser uses: https://github.com/goreleaser/goreleaser-action@v5 - env: - GITHUB_TOKEN: "" with: - args: release --snapshot --skip=publish --clean + install-only: true + + - name: GoReleaser Check + run: | + unset GITHUB_TOKEN + goreleaser release --snapshot --skip=publish --clean + env: + GORELEASER_CURRENT_TAG: v0.0.0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9f06634..6dcaced 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,11 +25,15 @@ jobs: with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} - - name: Run GoReleaser + - name: Install GoReleaser uses: https://github.com/goreleaser/goreleaser-action@v5 + with: + install-only: true + + - name: Run GoReleaser + run: | + unset GITHUB_TOKEN + goreleaser release --clean env: - GITHUB_TOKEN: "" GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - with: - args: release --clean