Add version parameter to Finish-Release.ps1 for versioned output files #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SQL Notebook | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Build Phase 1 (x64) | |
| shell: pwsh | |
| run: | | |
| Write-Output "Finding msbuild." | |
| $msbuildPath = & vswhere.exe -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe | |
| Write-Output "Found msbuild at: $msbuildPath" | |
| Write-Output "Building x64 - Phase 1 (build and prepare files)." | |
| ps1\Start-Release.ps1 -MsbuildPath $msbuildPath -Platform x64 | |
| - name: Build Phase 1 (arm64) | |
| shell: pwsh | |
| run: | | |
| Write-Output "Finding msbuild." | |
| $msbuildPath = & vswhere.exe -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe | |
| Write-Output "Found msbuild at: $msbuildPath" | |
| Write-Output "Building arm64 - Phase 1 (build and prepare files)." | |
| ps1\Start-Release.ps1 -MsbuildPath $msbuildPath -Platform arm64 | |
| - name: Upload Complete Repository with Release Files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: SqlNotebook-release-artifact | |
| path: . | |
| test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Build | |
| shell: pwsh | |
| run: | | |
| Write-Output "Finding msbuild." | |
| $msbuildPath = & vswhere.exe -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe | |
| Write-Output "Found msbuild at: $msbuildPath" | |
| ps1\Update-Deps.ps1 | |
| ps1\Start-Tests.ps1 -MsbuildPath $msbuildPath -Platform "x64" |