Skip to content

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kentico-anthonym authored Nov 15, 2023
1 parent 1fd4aef commit 8642ef2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
Solution_Name: KInspector.sln # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
Wap_Project_Directory: KenticoInspector.WebApplication # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
Wap_Project_Path: KenticoInspector.WebApplication\KenticoInspector.WebApplication.csproj # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj.

FrontEnd_Directory: KenticoInspector.WebApplication\ClientApp
steps:
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
Expand All @@ -76,7 +76,9 @@ jobs:
dotnet-version: '2.2.x'
- run: dotnet restore


#installs and runs npm i
- run: cd ${{env.FrontEnd_Directory}}
- name: Use node.js
uses: actions/setup-node@v3
with:
Expand All @@ -87,7 +89,9 @@ jobs:
- run: npm run build
working-directory: KenticoInspector.WebApplication\ClientApp


# build the application
- run: cd ..\..
- run: dotnet publish ${{env.Wap_Project_Path}} /p:PublishDir=..\publish -c Release -r win-x64 --self-contained true

# Copy compiled front-end-topublish folder
Expand All @@ -102,4 +106,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: MSIX Package
path: .\AppPackages
path: .\publish

0 comments on commit 8642ef2

Please sign in to comment.