ci(windows): optimize tag triggers and add default v2.0.0 tag to release-windows.yml
This commit is contained in:
@@ -1,22 +1,20 @@
|
|||||||
name: Release Windows Binaries & Installers
|
name: Release Windows Binaries & Installers
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
|
||||||
types: [published, created]
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
|
||||||
- '**'
|
|
||||||
- 'v*'
|
- 'v*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: 'Release tag (optional)'
|
description: 'Release tag to publish assets to (default: v2.0.0)'
|
||||||
required: false
|
required: false
|
||||||
|
default: 'v2.0.0'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-windows:
|
release-windows:
|
||||||
name: Build & Release Windows Binaries & Installers
|
name: Build & Release Windows Binaries & Installers
|
||||||
|
# Note: Requires a registered Gitea Act Runner with label 'windows-latest'
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
@@ -77,7 +75,7 @@ jobs:
|
|||||||
GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }}
|
GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }}
|
||||||
GITEA_SERVER_URL: ${{ github.server_url }}
|
GITEA_SERVER_URL: ${{ github.server_url }}
|
||||||
GITEA_REPOSITORY: ${{ github.repository }}
|
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: |
|
run: |
|
||||||
$py = "python"
|
$py = "python"
|
||||||
if (-not (Get-Command "python" -ErrorAction SilentlyContinue)) {
|
if (-not (Get-Command "python" -ErrorAction SilentlyContinue)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user