working fine, couple of fixes #11
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: Development build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore NuGet packages | |
run: | | |
nuget restore ./zstio-tv.sln | |
shell: pwsh | |
- name: Build WPF App | |
run: | | |
dotnet build ./zstio-tv.sln --configuration Release | |
shell: pwsh | |
- name: Publish WPF App | |
run: | | |
dotnet publish ./zstio-tv.sln --configuration Release --output ./publish | |
shell: pwsh | |
- name: Rename executable | |
run: | | |
$artifact = Get-ChildItem -Path ./publish -Recurse -Filter *.exe | |
$artifactName = $artifact.Name | |
Rename-Item -Path $artifact.FullName -NewName "DEV-ZSTIOTV-$artifactName" | |
shell: pwsh | |
- name: Upload executable as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wpf-app-artifact | |
path: ./publish/DEV-ZSTIOTV-*.exe |