ci: fix deployment parameters #177
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 Self-Contained Windows Executable | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
- name: Setup Database | |
run: | | |
dotnet tool install --global dotnet-ef --version 6.* | |
dotnet ef database update --project canary | |
- name: Build self-contained Windows executable | |
run: dotnet publish canary -r win-x64 -c ExeRelease -p:PublishSingleFile=true --self-contained | |
- name: Copy database file to output directory | |
run: copy canary\canary.db canary\bin\exerelease\net6.0\win-x64\publish | |
- name: Upload generated Windows executable | |
uses: actions/upload-artifact@master | |
with: | |
name: windows-x64 | |
path: canary/bin/exerelease/net6.0/win-x64/publish |