Skip to content

Merge pull request #394 from PiTi2k5/patch-3 #698

Merge pull request #394 from PiTi2k5/patch-3

Merge pull request #394 from PiTi2k5/patch-3 #698

Workflow file for this run

name: MSBuild
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release
permissions:
contents: read
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Declare variables
shell: bash
run: |
export sha_short=$(git rev-parse --short "$GITHUB_SHA")
sed -i "s/#TESTTAG#/${sha_short}/g" client/Main.xaml.cs
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /property:Platform=x86 ${{env.SOLUTION_FILE_PATH}}
- uses: actions/upload-artifact@v3
with:
name: client
path: client\bin\Release\client.exe