Added version to git actions.

This commit is contained in:
Heavy Bob 2025-04-05 23:21:09 +11:00
parent 49dfbb2291
commit bd8bbfb365

View file

@ -13,6 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Extract version
id: version
run: |
$version = (Select-String -Path "AutoTrackR2/UpdatePage.xaml.cs" -Pattern 'currentVersion = "(.+?)"' | Select-Object -First 1).Matches.Groups[1].Value
echo "version=$version" >> $env:GITHUB_OUTPUT
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
@ -46,6 +52,6 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: AutoTrackR2-Release
name: AutoTrackR2-${{ steps.version.outputs.version }}
path: artifacts/
retention-days: 5