Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mx2rel committed Mar 13, 2024
2 parents 367b0c5 + 00c2460 commit b1f01b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: WinUI 3 MSIX app

on:
push:
branches: [ main ]
branches: [ master ]
pull_request:
branches: [ main ]
branches: [ master ]

jobs:

Expand All @@ -22,7 +22,7 @@ jobs:
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

env:
Solution_Name: your-solution-name # Replace with your solution name, i.e. App1.sln.
Solution_Name: VulcanForWindows.sln # Replace with your solution name, i.e. App1.sln.

steps:
- name: Checkout
Expand All @@ -34,15 +34,15 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0
dotnet-version: 6.0.x

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]

# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild $env:VulcanForWindows /t:Restore /p:Configuration=$env:Configuration
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}

Expand All @@ -55,7 +55,7 @@ jobs:
# Create the app package by building and packaging the project
- name: Create the app package
run: msbuild $env:VulcanForWindows /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
env:
Appx_Bundle: Never
Appx_Package_Build_Mode: SideloadOnly
Expand All @@ -72,4 +72,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: MSIX Package
path: ${{ env.VulcanForWindows }}\\Packages
path: ${{ env.Solution_Name }}\\Packages

0 comments on commit b1f01b8

Please sign in to comment.