|
| 1 | +name: Package |
| 2 | + |
| 3 | +on: [push] |
| 4 | + |
| 5 | +permissions: |
| 6 | + id-token: write |
| 7 | + contents: read |
| 8 | + |
| 9 | +jobs: |
| 10 | + package: |
| 11 | + name: Package |
| 12 | + runs-on: windows-2022 |
| 13 | + environment: production |
| 14 | + steps: |
| 15 | + - name: Azure login |
| 16 | + uses: azure/login@v1 |
| 17 | + with: |
| 18 | + client-id: ${{ secrets.AZURE_CLIENT_ID }} |
| 19 | + tenant-id: ${{ secrets.AZURE_TENANT_ID }} |
| 20 | + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} |
| 21 | + |
| 22 | + - name: Sync |
| 23 | + uses: actions/checkout@v2 |
| 24 | + with: |
| 25 | + submodules: 'recursive' |
| 26 | + |
| 27 | + - name: Build Release |
| 28 | + shell: pwsh |
| 29 | + run: ./build_scripts/build.ps1 Release |
| 30 | + |
| 31 | + - name: Sign with Trusted Signing |
| 32 | + uses: azure/trusted-signing-action@v0.5.0 |
| 33 | + with: |
| 34 | + endpoint: https://eus.codesigning.azure.net/ |
| 35 | + trusted-signing-account-name: vscx-codesigning |
| 36 | + certificate-profile-name: vscx-certificate-profile |
| 37 | + files: ${{ github.workspace }}/build/bin/Release/GUI.exe |
| 38 | + file-digest: SHA256 |
| 39 | + timestamp-rfc3161: http://timestamp.acs.microsoft.com |
| 40 | + timestamp-digest: SHA256 |
| 41 | + exclude-environment-credential: true |
| 42 | + exclude-workload-identity-credential: true |
| 43 | + exclude-managed-identity-credential: true |
| 44 | + exclude-shared-token-cache-credential: true |
| 45 | + exclude-visual-studio-credential: true |
| 46 | + exclude-visual-studio-code-credential: true |
| 47 | + exclude-azure-cli-credential: false |
| 48 | + exclude-azure-powershell-credential: true |
| 49 | + exclude-azure-developer-cli-credential: true |
| 50 | + exclude-interactive-browser-credential: true |
| 51 | + |
| 52 | + - name: Archive Package |
| 53 | + uses: actions/upload-artifact@v4 |
| 54 | + with: |
| 55 | + name: D3d12infoGUI - Release |
| 56 | + path: ${{ github.workspace }}/build/bin/Release/GUI.exe |
0 commit comments