Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
inline storebroker auth in steps where used
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Feb 8, 2023
1 parent 5f3b37a commit 10ea49b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,6 @@ jobs:
Set-ExecutionPolicy RemoteSigned -Force
Install-Module -Name StoreBroker -Force
Import-Module StoreBroker
$clientSecret = echo $Env:AADSecret | ConvertTo-SecureString -AsPlainText -Force
$clientCredentials = New-Object System.Management.Automation.PSCredential "$Env:AADClient", $clientSecret
Set-StoreBrokerAuthentication -TenantId "$Env:AADTenant" -Credential $clientCredentials
env:
AADSecret: ${{ secrets.AAD_SECRET }}
AADClient: ${{ secrets.AAD_CLIENT }}
Expand Down Expand Up @@ -245,8 +240,18 @@ jobs:

- name: Flight package (beta)
if: ${{ github.event.release.prerelease }}
run: Update-ApplicationFlightSubmission -AppId 9N88CQPKGS15 -FlightId 203522cc-6c4a-42a0-8080-de225fb1ee74 -SubmissionDataPath .\dragon6-winstore.json -PackagePath .\dragon6-winstore.zip -AutoCommit -Force -ReplacePackages -TargetPublishMode Immediate
run: |
$clientSecret = echo $Env:AADSecret | ConvertTo-SecureString -AsPlainText -Force
$clientCredentials = New-Object System.Management.Automation.PSCredential "$Env:AADClient", $clientSecret
Set-StoreBrokerAuthentication -TenantId "$Env:AADTenant" -Credential $clientCredentials
Update-ApplicationFlightSubmission -AppId 9N88CQPKGS15 -FlightId 203522cc-6c4a-42a0-8080-de225fb1ee74 -SubmissionDataPath .\dragon6-winstore.json -PackagePath .\dragon6-winstore.zip -AutoCommit -Force -ReplacePackages -TargetPublishMode Immediate
- name: Submit to Windows Store
if: ${{ !github.event.release.prerelease }}
run: Update-ApplicationSubmission -AppId 9N88CQPKGS15 -SubmissionDataPath .\dragon6-winstore.json -PackagePath .\dragon6-winstore.zip -AutoCommit -Force -AddPackages -UpdatePublishModeAndVisibility -UpdateListings -UpdateNotesForCertification
run: |
$clientSecret = echo $Env:AADSecret | ConvertTo-SecureString -AsPlainText -Force
$clientCredentials = New-Object System.Management.Automation.PSCredential "$Env:AADClient", $clientSecret
Set-StoreBrokerAuthentication -TenantId "$Env:AADTenant" -Credential $clientCredentials
Update-ApplicationSubmission -AppId 9N88CQPKGS15 -SubmissionDataPath .\dragon6-winstore.json -PackagePath .\dragon6-winstore.zip -AutoCommit -Force -AddPackages -UpdatePublishModeAndVisibility -UpdateListings -UpdateNotesForCertification

0 comments on commit 10ea49b

Please sign in to comment.