Files
terraform-provider-virtfusion/.gitea/workflows/release.yaml
Andrew e26c78e2c2
Some checks failed
Endpoint Sync Check / check-drift (push) Successful in 21s
CI / build (push) Successful in 34s
Release / release (push) Failing after 31s
Switch release workflow and GoReleaser to Gitea-native
- .goreleaser.yml: replace release.github with release.gitea, add
  gitea_urls pointing to git.ezscale.cloud
- release.yaml: use GITEA_TOKEN (via secrets.RELEASE_TOKEN) instead of
  GITHUB_TOKEN, remove manual curl-based Gitea release step (GoReleaser
  handles it natively now)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 02:26:13 -04:00

37 lines
830 B
YAML

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Check endpoint drift
run: go run ./scripts/check-endpoint-drift.go
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --clean
env:
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}