forgejo-runner-resource-col.../.github/workflows/release.yaml
Manuel Ganter d6cf8e5f39
Some checks failed
ci / build (push) Successful in 1m20s
ci / goreleaser (push) Failing after 57s
fix(ci): unset GITHUB_TOKEN via shell before running goreleaser
2026-02-04 14:57:56 +01:00

39 lines
982 B
YAML

name: ci
on:
push:
tags:
- v*
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test code
run: make test
- name: Import GPG key
id: import_gpg
uses: https://github.com/crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- 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:
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}