AmagnoVirtualPrinter/.github/workflows/build.yml
2023-05-30 17:43:15 +02:00

43 lines
1.1 KiB
YAML

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:
jobs:
build:
runs-on: windows-latest
env:
solution: AmagnoVirtualPrinter.sln
configuration: Release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1
- name: Restore the application
run: msbuild $env:solution /t:Restore /p:Configuration=$env:configuration
- name: Build solution
run: msbuild $env:solution /t:Rebuild /p:Configuration=$env:configuration
- name: Create msi from PowerShell Script
run: |
"$Env:GITHUB_WORKSPACE\create_msi.ps1"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: installer
path: ./AmagnoPrinterInstaller.msi
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: files
path: files/**/*