2 Commits

Author SHA1 Message Date
3bb663dc8b ci: release workflow with 'go-releaser' 2026-03-29 21:49:59 +02:00
db2dfb466b ci: add 'check-pr-title' job to pipeline 2026-03-29 21:47:11 +02:00
2 changed files with 33 additions and 0 deletions

View File

@@ -6,6 +6,17 @@ on:
pull_request:
jobs:
check-pr-title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- run: |
TITLE="${{ gitea.event.pull_request.title }}"
if ! echo "$TITLE" | grep -qE '^(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then
echo "::error::Pull Request title must follow conventional commits"
exit 1
fi
lint-go:
name: Go Lint
runs-on: ubuntu-latest

View File

@@ -0,0 +1,22 @@
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
- uses: goreleaser/goreleaser-action@v6
with:
args: release --clean
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}