De-hardcode workflow initiator in release-windows.yml to support release events and all tags

This commit is contained in:
2026-09-04 17:46:00 +02:00
parent 7f6bf4442f
commit e4f6a9295b
+5 -4
View File
@@ -1,15 +1,16 @@
name: Release Windows Binaries
on:
release:
types: [published, created]
push:
tags:
- 'v*'
- '*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v1.0.2)'
description: 'Release tag (optional)'
required: false
default: 'v1.0.2'
jobs:
release-windows:
@@ -54,7 +55,7 @@ jobs:
GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }}
GITEA_SERVER_URL: ${{ github.server_url }}
GITEA_REPOSITORY: ${{ github.repository }}
GITEA_REF_NAME: ${{ inputs.tag || github.ref_name }}
GITEA_REF_NAME: ${{ github.event.release.tag_name || inputs.tag || github.ref_name }}
run: |
$py = "python"
if (-not (Get-Command "python" -ErrorAction SilentlyContinue)) {