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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user