Skip to content

Commit

Permalink
Actions - v1 (Renovated)
Browse files Browse the repository at this point in the history
  • Loading branch information
meetox80 authored Sep 22, 2023
1 parent d9556c6 commit c7da88a
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build and Release an development build of zstio-tv
name: Development build

on:
push:
branches:
Expand All @@ -12,20 +13,35 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup MSBuild
uses: microsoft/[email protected]

- name: Setup NuGet
uses: NuGet/setup-nuget
- 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
run: |
nuget restore ./zstio-tv.sln
shell: pwsh

- name: Build WPF App
run: msbuild ./zstio-tv.sln /p:Configuration=Release /p:Platform="Any CPU"
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: Publish Artifact
- name: Upload executable as artifact
uses: actions/upload-artifact@v2
with:
name: DEV-ZSTIOTV-${{ github.run_number }}.exe
path: ./path/to/your/build/output/folder
name: wpf-app-artifact
path: ./publish/DEV-ZSTIOTV-*.exe

0 comments on commit c7da88a

Please sign in to comment.