fix(ci): use tag-based trigger for release workflow
All checks were successful
CI / Build (Linux) (push) Successful in 18s
Release / Build and Publish (push) Successful in 20s

Remove release event trigger in favor of tag push trigger only. Simplify version extraction to use gitea.ref_name directly instead of parsing GITEA_REF environment variable.

This ensures the workflow runs immediately when a version tag is pushed, without requiring a separate release creation step.
This commit is contained in:
2026-01-29 23:33:28 -05:00
parent 4d880e77d5
commit 996ffb67c0

View File

@@ -2,8 +2,6 @@
name: Release name: Release
on: on:
release:
types: [published]
push: push:
tags: tags:
- 'v*' - 'v*'
@@ -23,7 +21,8 @@ jobs:
- name: Get version from tag - name: Get version from tag
id: version id: version
run: | run: |
VERSION=${GITEA_REF#refs/tags/v} TAG="${{ gitea.ref_name }}"
VERSION="${TAG#v}"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "Building version: $VERSION" echo "Building version: $VERSION"