Update push_master.yml
This commit is contained in:
20
.github/workflows/push_master.yml
vendored
20
.github/workflows/push_master.yml
vendored
@@ -65,23 +65,13 @@ jobs:
|
|||||||
run: msbuild VDownload /t:Restore /p:Configuration=$env:Configuration
|
run: msbuild VDownload /t:Restore /p:Configuration=$env:Configuration
|
||||||
env:
|
env:
|
||||||
Configuration: ${{ matrix.configuration }}
|
Configuration: ${{ matrix.configuration }}
|
||||||
- name: Decode certificate
|
- name: Create the app
|
||||||
run: |
|
run: msbuild $env:Solution_Name /t:Publish /p:Configuration=$env:Configuration /p:Platform=$env:Platform
|
||||||
$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
|
|
||||||
env:
|
env:
|
||||||
Appx_Bundle: Never
|
|
||||||
Appx_Package_Build_Mode: SideloadOnly
|
|
||||||
Appx_Package_Dir: Packages\
|
|
||||||
Configuration: ${{ matrix.configuration }}
|
Configuration: ${{ matrix.configuration }}
|
||||||
Platform: ${{ matrix.platform }}
|
Platform: ${{ matrix.platform }}
|
||||||
- name: Remove certificate
|
- name: Upload artifact
|
||||||
run: Remove-Item -path Certificate.pfx
|
|
||||||
- name: Upload package as artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: MSIX ${{matrix.platform}}
|
name: ${{matrix.platform}}
|
||||||
path: VDownload\\Packages
|
path: VDownload\\bin
|
||||||
|
|||||||
Reference in New Issue
Block a user