- .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>
37 lines
830 B
YAML
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 }}
|