garm-provider-edge-connect/.github/workflows/release.yaml
Daniel Sy 2dfb04798d
Some checks failed
Go Tests / go-tests (push) Failing after 1m23s
build / build (push) Successful in 43s
ci / goreleaser (push) Failing after 1m22s
ci(release): 🚀 Add release automation with GoReleaser
Implements automated release pipeline using GitHub Actions and GoReleaser.

- Configures GoReleaser to build for multiple platforms (linux/darwin/windows)
- Sets up GPG signing for release artifacts
- Configures Gitea as release target with custom API endpoints
- Implements semantic changelog generation with categorized groups
- Adds GitHub Actions workflow triggered on version tags
2025-11-07 15:08:05 +01:00

34 lines
869 B
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@v6
with:
go-version: ">=1.25.1"
- 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: Run GoReleaser
uses: https://github.com/goreleaser/goreleaser-action@v6
env:
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
with:
args: release --clean