Skip to content

Commit

Permalink
Add output version
Browse files Browse the repository at this point in the history
  • Loading branch information
nomi-san authored May 9, 2024
1 parent 5734767 commit 99a8528
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
with:
fetch-depth: 0

- name: Prepare envars
run: |
echo "SHORT_SHA=$("${{ github.sha }}" | cut -c1-8)" >> $env:GITHUB_ENV
echo "APP_VERSION=$((Get-Content -Path "App.xaml.cs" | Select-String -Pattern 'VERSION\s=\s"(.+)"' -AllMatches).Matches.Groups[1].Value)" >> $env:GITHUB_ENV
- name: Patch project files
run: |
(Get-Content app\ParsecVDisplay.csproj) -replace "FrameworkVersion>v4.5", "FrameworkVersion>v4.8" | Out-File app\ParsecVDisplay.csproj
Expand All @@ -28,8 +33,9 @@ jobs:
- name: Build app
run: |
cd app
msbuild ParsecVDisplay.csproj /t:Build /p:Configuration=Release /p:Platform=AnyCPU
msbuild ParsecVDisplay.csproj /t:Build /p:Configuration=Debug /p:Platform=AnyCPU
- uses: actions/upload-artifact@v4
with:
name: ParsecVDisplay-v${{ env.APP_VERSION }}-${{ env.SHORT_SHA }}
path: app/bin

0 comments on commit 99a8528

Please sign in to comment.