Skip to content

Commit

Permalink
Update push_master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszskoczek authored Mar 11, 2024
1 parent 37f35c2 commit 268bfe7
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 268bfe7

Please sign in to comment.