Update push_master.yml

This commit is contained in:
2024-03-11 02:54:43 +01:00
committed by GitHub
Unverified
parent 37f35c281b
commit 268bfe798b

View File

@@ -65,23 +65,13 @@ jobs:
run: msbuild VDownload /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Decode certificate
run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}")
$certificatePath = "Certificate.pfx"
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
- name: Create the app package
run: msbuild VDownload /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=Certificate.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
- name: Create the app
run: msbuild $env:Solution_Name /t:Publish /p:Configuration=$env:Configuration /p:Platform=$env:Platform
env:
Appx_Bundle: Never
Appx_Package_Build_Mode: SideloadOnly
Appx_Package_Dir: Packages\
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
- name: Remove certificate
run: Remove-Item -path Certificate.pfx
- name: Upload package as artifact
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: MSIX ${{matrix.platform}}
path: VDownload\\Packages
name: ${{matrix.platform}}
path: VDownload\\bin