Switch release workflow and GoReleaser to Gitea-native
Some checks failed
Endpoint Sync Check / check-drift (push) Successful in 21s
CI / build (push) Successful in 34s
Release / release (push) Failing after 31s

- .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>
This commit is contained in:
2026-03-16 02:26:13 -04:00
parent 467f1bf829
commit e26c78e2c2
2 changed files with 7 additions and 15 deletions

View File

@@ -5,9 +5,6 @@ on:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
@@ -35,15 +32,5 @@ jobs:
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
- name: Create Gitea release
if: success()
run: |
TAG="${GITHUB_REF#refs/tags/}"
curl -s -X POST \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${TAG}\", \"name\": \"${TAG}\", \"body\": \"Release ${TAG} — see GitHub mirror for artifacts.\"}" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases"

View File

@@ -50,13 +50,18 @@ signs:
- "${artifact}"
release:
github:
gitea:
owner: EZSCALE
name: terraform-provider-virtfusion
extra_files:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
gitea_urls:
api: https://git.ezscale.cloud/api/v1/
download: https://git.ezscale.cloud
skip_tls_verify: false
changelog:
sort: asc
filters: