forgejo-runner-optimiser/.github/workflows/release.yaml
Martin McCaffery 58fc39696e
Some checks failed
ci / goreleaser (push) Failing after 21s
ci / build (push) Successful in 1m56s
Rename repo from forgejo-runner-resource-collector
2026-02-12 09:43:21 +01:00

40 lines
1 KiB
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 }}
GITHUB_SERVER_URL: ${{ github.server_url }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}