fix(ci): unset GITHUB_TOKEN via shell before running goreleaser
This commit is contained in:
parent
d1cc6e3c15
commit
d6cf8e5f39
2 changed files with 17 additions and 8 deletions
13
.github/workflows/ci.yaml
vendored
13
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue