Update release.yaml

This commit is contained in:
Chris Titus 2024-06-10 23:52:52 -05:00
parent 09b1e56967
commit 3a83203298

View File

@ -9,6 +9,8 @@ on:
jobs: jobs:
build-runspace: build-runspace:
runs-on: windows-latest runs-on: windows-latest
outputs:
version: ${{ steps.extract_version.outputs.version }}
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -21,6 +23,7 @@ jobs:
if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') { if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') {
$version = $matches[1] $version = $matches[1]
echo "version=$version" >> $GITHUB_ENV echo "version=$version" >> $GITHUB_ENV
echo "::set-output name=version::$version"
break break
} }
} }
@ -28,7 +31,7 @@ jobs:
Write-Error "Version not found in winutil.ps1" Write-Error "Version not found in winutil.ps1"
exit 1 exit 1
} }
shell: pwsh shell: pwsh
- name: Create and Upload Release - name: Create and Upload Release
id: create_release id: create_release