forgejo-runner-optimiser/.github/workflows/release.yaml
Manuel Ganter d1cc6e3c15
Some checks failed
ci / goreleaser (push) Failing after 28s
ci / build (push) Successful in 1m7s
fix(ci): unset GITHUB_TOKEN to avoid conflict with GITEA_TOKEN
2026-02-04 14:54:51 +01:00

35 lines
897 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: Run GoReleaser
uses: https://github.com/goreleaser/goreleaser-action@v5
env:
GITHUB_TOKEN: ""
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
with:
args: release --clean