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>
This commit is contained in:
@@ -5,9 +5,6 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -35,15 +32,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
|
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"
|
|
||||||
|
|||||||
@@ -50,13 +50,18 @@ signs:
|
|||||||
- "${artifact}"
|
- "${artifact}"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
github:
|
gitea:
|
||||||
owner: EZSCALE
|
owner: EZSCALE
|
||||||
name: terraform-provider-virtfusion
|
name: terraform-provider-virtfusion
|
||||||
extra_files:
|
extra_files:
|
||||||
- glob: 'terraform-registry-manifest.json'
|
- glob: 'terraform-registry-manifest.json'
|
||||||
name_template: '{{ .ProjectName }}_{{ .Version }}_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:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
|
|||||||
Reference in New Issue
Block a user