Update exe.config to point to correct bin directory #31
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: CI | |
on: | |
push: | |
branches: | |
# Only run on branch push, not tag push | |
- '**' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup msbuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup nuget | |
uses: nuget/setup-nuget@v1 | |
- name: Nuget restore | |
run: nuget restore HSPI_WX200MultiStatus.sln | |
- name: Generate assembly version | |
uses: DoctorMcKay/action-csharp-majoryearweekbuild-version@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: MSBuild | |
run: | | |
msbuild /p:Configuration=Debug HSPI_WX200MultiStatus.sln | |
msbuild /p:Configuration=Release HSPI_WX200MultiStatus.sln | |
- name: Stage artifacts | |
run: | | |
mkdir artifacts | |
cp HSPI_WX200MultiStatus\bin\Release\HSPI_WX200MultiStatus.exe artifacts\HSPI_WX200MultiStatus.exe | |
cp HSPI_WX200MultiStatus\bin\Release\HSPI_WX200MultiStatus.exe.config artifacts\HSPI_WX200MultiStatus.exe.config | |
cp HSPI_WX200MultiStatus\bin\Release\*.dll artifacts | |
cp install.txt artifacts\install.txt | |
$release_version = (Get-ChildItem -Filter "artifacts\HSPI_WX200MultiStatus.exe" | Select-Object -ExpandProperty VersionInfo).FileVersion.Replace('.', '-') | |
echo "release_version=$release_version" | |
echo "release_version=$release_version" >> $env:GITHUB_ENV | |
- name: Stage debug artifacts | |
run: | | |
mkdir artifacts-debug | |
cp HSPI_WX200MultiStatus\bin\Debug\HSPI_WX200MultiStatus.exe artifacts-debug\HSPI_WX200MultiStatus.exe | |
cp HSPI_WX200MultiStatus\bin\Debug\HSPI_WX200MultiStatus.exe.config artifacts-debug\HSPI_WX200MultiStatus.exe.config | |
cp HSPI_WX200MultiStatus\bin\Debug\*.dll artifacts-debug | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: WX200MultiStatus_${{ env.release_version }} | |
path: artifacts | |
- name: Upload debug artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Debug Build | |
path: artifacts-debug |