forgejo-mcp/.forgejo/workflows/release.yml
Christoph Görn 351e8b7d05 fix: 🐛 release workflow checkout URL and skip-ci suppression
- Use https://code.forgejo.org/actions/checkout@v4 (Codeberg mirror)
  instead of short GitHub reference that fails on Codeberg runners
- Remove [skip ci] from semantic-release commit message so tag push
  still triggers the release workflow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Christoph Görn <goern@b4mad.net>
2026-02-06 09:46:58 +01:00

36 lines
No EOL
899 B
YAML

name: release
on:
push:
tags:
- 'v*'
jobs:
release:
permissions:
packages: write
contents: write
runs-on: codeberg-small
steps:
# https://code.forgejo.org/actions/checkout
- name: Checkout
uses: actions/checkout@v5
with:
# fetch full history to allow goreleaser to generate the full changelog
fetch-depth: 0
# https://code.forgejo.org/actions/setup-go
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
# https://github.com/goreleaser/goreleaser-action
- name: Run GoReleaser
uses: https://github.com/goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: release --clean --parallelism 2
env:
GORELEASER_FORCE_TOKEN: gitea
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}