@@ -554,8 +554,22 @@ jobs:
554554 Write-Host "=== Downloaded artifacts ==="
555555 Get-ChildItem -Path "artifacts" -Recurse
556556
557+ - name : Check Windows Store credentials
558+ id : check-creds
559+ shell : pwsh
560+ env :
561+ STORE_CLIENT_ID : ${{ secrets.WINDOWS_STORE_CLIENT_ID }}
562+ run : |
563+ if (-not [string]::IsNullOrEmpty($env:STORE_CLIENT_ID)) {
564+ echo "HAS_CREDS=true" >> $env:GITHUB_OUTPUT
565+ Write-Host "Windows Store credentials found"
566+ } else {
567+ echo "HAS_CREDS=false" >> $env:GITHUB_OUTPUT
568+ Write-Host "Windows Store credentials not configured"
569+ }
570+
557571 - name : Submit to Microsoft Store
558- if : ${{ secrets.WINDOWS_STORE_CLIENT_ID != '' }}
572+ if : steps.check-creds.outputs.HAS_CREDS == 'true'
559573 uses : microsoft/store-submission@v1
560574 with :
561575 command : publish
@@ -566,22 +580,19 @@ jobs:
566580 tenantId : ${{ secrets.WINDOWS_STORE_TENANT_ID }}
567581
568582 - name : Store submission status
583+ if : steps.check-creds.outputs.HAS_CREDS != 'true'
569584 shell : pwsh
570585 run : |
571- if ([string]::IsNullOrEmpty("${{ secrets.WINDOWS_STORE_CLIENT_ID }}")) {
572- Write-Host "=== Windows Store Submission ==="
573- Write-Host "Automatic submission not configured."
574- Write-Host ""
575- Write-Host "To enable, add these secrets:"
576- Write-Host " - WINDOWS_STORE_PRODUCT_ID"
577- Write-Host " - WINDOWS_STORE_CLIENT_ID"
578- Write-Host " - WINDOWS_STORE_CLIENT_SECRET"
579- Write-Host " - WINDOWS_STORE_TENANT_ID"
580- Write-Host ""
581- Write-Host "Manual submission: https://partner.microsoft.com/dashboard"
582- } else {
583- Write-Host "✅ Submitted to Windows Store"
584- }
586+ Write-Host "=== Windows Store Submission ==="
587+ Write-Host "Automatic submission not configured."
588+ Write-Host ""
589+ Write-Host "To enable, add these secrets:"
590+ Write-Host " - WINDOWS_STORE_PRODUCT_ID"
591+ Write-Host " - WINDOWS_STORE_CLIENT_ID"
592+ Write-Host " - WINDOWS_STORE_CLIENT_SECRET"
593+ Write-Host " - WINDOWS_STORE_TENANT_ID"
594+ Write-Host ""
595+ Write-Host "Manual submission: https://partner.microsoft.com/dashboard"
585596
586597 submit-mac-app-store :
587598 name : Submit to Mac App Store
0 commit comments