mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-03 01:05:30 +00:00
Added version to git actions.
This commit is contained in:
parent
49dfbb2291
commit
bd8bbfb365
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue