fix(ci): use tag-based trigger for release workflow
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:
@@ -2,8 +2,6 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
@@ -23,7 +21,8 @@ jobs:
|
||||
- name: Get version from tag
|
||||
id: version
|
||||
run: |
|
||||
VERSION=${GITEA_REF#refs/tags/v}
|
||||
TAG="${{ gitea.ref_name }}"
|
||||
VERSION="${TAG#v}"
|
||||
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "Building version: $VERSION"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user