Update main.yml #28
Workflow file for this run
This file contains 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: Build & Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: self-hosted | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Restore Packages | |
run: dotnet restore SourceGrid_2013.sln | |
- name: Build | |
run: ${env:MSBUILD} -m -t:Rebuild -p:Configuration=Release SourceGrid_2013.sln | |
env: | |
MSBUILD: ${{ secrets.TEST }} | |
- name: Archive Build Log | |
uses: actions/upload-artifact@v2 | |
if: ${{ success() || failure() }} | |
with: | |
name: Compile_Solution_log | |
path: | | |
src/*.binlog | |
*.binlog | |
- name: Create zip | |
id: packageBuildResults | |
run: | | |
$sourceFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "*" | |
$outFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "continuous-clearing" | |
New-Item -ItemType Directory -Force -Path $outFolder | |
$fileName = "sourcegrid-4.0.0.zip" | |
Write-Host "Filename: '$fileName'" | |
Write-Host "sourceFolder: '$sourceFolder'" | |
Write-Host "Outfolder: '$outFolder'" | |
Write-Host "::set-output name=LicenseClearingTool::$($fileName)" | |
$outPath = Join-Path $outFolder $fileName | |
Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal | |