ci(windows): optimize tag triggers and add default v2.0.0 tag to release-windows.yml

This commit is contained in:
2026-09-04 23:22:52 +02:00
parent 26d3d59812
commit a9f096ef1b
+4 -6
View File
@@ -1,22 +1,20 @@
name: Release Windows Binaries & Installers
on:
release:
types: [published, created]
push:
tags:
- '*'
- '**'
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag (optional)'
description: 'Release tag to publish assets to (default: v2.0.0)'
required: false
default: 'v2.0.0'
jobs:
release-windows:
name: Build & Release Windows Binaries & Installers
# Note: Requires a registered Gitea Act Runner with label 'windows-latest'
runs-on: windows-latest
steps:
- name: Checkout Repository
@@ -77,7 +75,7 @@ jobs:
GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }}
GITEA_SERVER_URL: ${{ github.server_url }}
GITEA_REPOSITORY: ${{ github.repository }}
GITEA_REF_NAME: ${{ github.event.release.tag_name || inputs.tag || github.ref_name }}
GITEA_REF_NAME: ${{ inputs.tag || github.event.release.tag_name || github.ref_name }}
run: |
$py = "python"
if (-not (Get-Command "python" -ErrorAction SilentlyContinue)) {