2025-05-31 23:44:16 +00:00
|
|
|
name: Build and Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: '1.24'
|
|
|
|
- name: Install Goreleaser
|
|
|
|
run: |
|
2025-06-01 00:55:27 +00:00
|
|
|
go install github.com/goreleaser/goreleaser/v2@latest
|
2025-05-31 23:44:16 +00:00
|
|
|
- name: Run Goreleaser
|
|
|
|
env:
|
|
|
|
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
|
2025-06-01 00:55:27 +00:00
|
|
|
GORELEASER_FORCE_TOKEN: gitea
|
2025-06-01 00:39:24 +00:00
|
|
|
GITEA_USERNAME: ${{ secrets.FORGEJO_PACKAGE_PUBLISH_USERNAME }}
|
|
|
|
GITEA_TOKEN: ${{ secrets.FORGEJO_PACKAGE_PUBLISH_TOKEN }}
|
2025-05-31 23:44:16 +00:00
|
|
|
run: |
|
|
|
|
./bin/goreleaser release --clean --skip-validate
|