Skip to content

GH action - automatic release #49

GH action - automatic release

GH action - automatic release #49

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@latest
- uses: actions/setup-dotnet@latest
with:
dotnet-version: '8.0.x' # SDK Version to use.
- run: dotnet test -c release
working-directory: ./procgov-tests
- run: dotnet publish -c release -r win-x86 --self-contained
working-directory: ./procgov
- run: dotnet publish -c release -r win-x64 --self-contained
working-directory: ./procgov
- name: Copy artifacts
run: |
New-Item -Type Directory -Path artifacts
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x86/publish/procgov.exe" -Destination "artifacts/procgov32.exe"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x86/publish/procgov.pdb" -Destination "artifacts/procgov32.pdb"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x64/publish/procgov.exe" -Destination "artifacts/procgov64.exe"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x64/publish/procgov.pdb" -Destination "artifacts/procgov64.pdb"
- uses: actions/upload-artifact@latest
with:
name: procgov
path: artifacts/*