Fix file-transfer
This commit is contained in:
@@ -2,13 +2,13 @@ name: build-windows
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
branches: [pro-features]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version_suffix:
|
||||
description: "Version suffix (e.g. 'cst', 'beta1'). Empty = vanilla."
|
||||
type: string
|
||||
default: ""
|
||||
default: "cst"
|
||||
|
||||
# Workflow-level env is visible to every job. Runner-specific paths
|
||||
# (VCPKG_ROOT, LLVM_HOME, …) live on the build-x64 job instead, since the
|
||||
@@ -125,7 +125,10 @@ jobs:
|
||||
id: version
|
||||
shell: pwsh
|
||||
env:
|
||||
VERSION_SUFFIX: ${{ inputs.version_suffix }}
|
||||
# On push events `inputs.*` is empty — the workflow_dispatch default
|
||||
# ("cst") doesn't apply. Fall back to "cst" in-script so push and
|
||||
# dispatch produce the same default tag shape.
|
||||
VERSION_SUFFIX: ${{ inputs.version_suffix || 'cst' }}
|
||||
run: |
|
||||
$base = (Select-String -Path Cargo.toml -Pattern '^version = "([^"]+)"').Matches[0].Groups[1].Value
|
||||
if (-not $base) { throw "could not parse version from Cargo.toml" }
|
||||
|
||||
Reference in New Issue
Block a user