ci: Auto-create release on version tag push

Change workflow trigger from manual release to tag push (v*).
Adds release job that creates Gitea release before building.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-03 20:28:55 +01:00
co-authored by Claude Opus 4.5
parent 8a6bdb9547
commit f334753918
+17 -2
View File
@@ -1,12 +1,27 @@
name: Build and Push
on:
release:
types: [published]
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Gitea Release
uses: https://gitea.com/actions/release-action@main
with:
title: Release ${{ github.ref_name }}
body: "Automated release for ${{ github.ref_name }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v4