Update Packaging.wapproj #3
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: Build APPX Package | |
on: | |
push: | |
workflow_dispatch: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup MSBuild | |
uses: microsoft/[email protected] | |
- name: Restore NuGet Packages | |
run: nuget restore Percentage.sln | |
- name: Build solution | |
run: msbuild.exe Percentage.sln /p:Configuration=Release | |
- name: Create APPX package | |
run: | | |
mkdir Packaging\Output | |
makeappx.exe pack /d Packaging /p Packaging\Output\BatteryPercentageIcon.appx | |
- name: Upload APPX as Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: BatteryPercentageIcon | |
path: Packaging\Output\BatteryPercentageIcon.appx |