Skip to content

Commit

Permalink
Edited Release and Build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxlider authored Mar 29, 2024
1 parent 6625939 commit 4a5a697
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

strategy:
matrix:
configuration: [Debug, Release]
configuration: [Release]

runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
Expand Down Expand Up @@ -87,7 +87,17 @@ jobs:

# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
run: dotnet restore

# Build
- name: Build the application
run: dotnet build --configuration $env:Configuration -r win-x64
env:
Configuration: ${{ matrix.configuration }}

# Pub
- name: Publish the application
run: dotnet publish --configuration $env:Configuration -r win-x64 --self-contained true /p:useapphost=true --output .\Release_Nightly_x64
env:
Configuration: ${{ matrix.configuration }}

Expand All @@ -97,7 +107,7 @@ jobs:
# Filename for archive
filename: nightly_x64.zip
# Base path for archive files
path: .
path: .\Release_Nightly_x64


# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
Expand Down

0 comments on commit 4a5a697

Please sign in to comment.