Associate with Microsoft Store #210
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'AuraClick/**' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - 'AuraClick/**' | |
| permissions: | |
| contents: read | |
| actions: write | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| configuration: [Release] | |
| platform: [x64, x86, ARM64] | |
| env: | |
| Solution_Name: AuraClick.slnx | |
| Dir_Name: AuraClick | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Setup MSBuild.exe | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Restore the application | |
| run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration | |
| env: | |
| Configuration: ${{ matrix.configuration }} | |
| - name: Decode the pfx | |
| run: | | |
| $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}") | |
| $certificatePath = "GitHubActionsWorkflow.pfx" | |
| [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) | |
| - name: Create the app package | |
| run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true | |
| env: | |
| Appx_Bundle: Never | |
| Appx_Package_Build_Mode: SideloadOnly | |
| Appx_Package_Dir: Packages\ | |
| Configuration: ${{ matrix.configuration }} | |
| Platform: ${{ matrix.platform }} | |
| - name: Remove the pfx | |
| run: Remove-Item -path GitHubActionsWorkflow.pfx | |
| - name: Upload MSIX package | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: MSIX Package (${{ matrix.configuration }}, ${{ matrix.platform }}) | |
| path: ${{ github.workspace }}\${{ env.Dir_Name }}\Packages\** | |
| compression-level: 0 |