fix(ci): unset GITHUB_TOKEN via shell before running goreleaser
Some checks failed
ci / build (push) Successful in 1m20s
ci / goreleaser (push) Failing after 57s

This commit is contained in:
Manuel Ganter 2026-02-04 14:57:56 +01:00
parent d1cc6e3c15
commit d6cf8e5f39
No known key found for this signature in database
2 changed files with 17 additions and 8 deletions

View file

@ -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

View file

@ -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