Add files via upload #55
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 for Windows | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: uwp | |
submodules: recursive | |
- name: Install Node.js 12 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12.x' | |
registry-url: 'https://npm.pkg.github.com' | |
- name: Setup NuGet.exe for use with actions | |
uses: NuGet/[email protected] | |
- name: Setup MSVC Development Environment | |
uses: TheMrMilchmann/[email protected] | |
with: | |
arch: x64 | |
uwp: true | |
- name: Use DuckStation PFX | |
run: echo "${{ secrets.DUCKSTATION_PFX }}" > duckstation-uwp_TemporaryKey.pfx | |
- name: Build DuckStation x64 | |
run: msbuild duckstation.sln /t:Rebuild /p:Configuration=ReleaseUWP /p:Platform=x64 /restore | |
- name: Sign UWP package | |
run: | | |
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\SignTool.exe" sign /fd SHA256 /f duckstation-uwp_TemporaryKey.pfx /p ${{ secrets.PFX_PASSWORD }} /t http://timestamp.digicert.com/ /v *.appx | |
- name: Upload UWP package as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: DuckStation-UWP | |
- name: Cleanup | |
run: | | |
Remove-Item "duckstation-uwp_TemporaryKey.pfx" -Force |