Skip to content

Commit f99ddef

Browse files
committed
Rearrange and add queue parameter
1 parent 42d20ca commit f99ddef

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

ci/release.yml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ parameters:
1919
displayName: "Auto-update users to this release"
2020
type: boolean
2121
default: false
22+
- name: PublishStore
23+
displayName: "Also publish to the Store"
24+
type: boolean
25+
default: false
2226
- name: PreTest
2327
displayName: "Pre test"
2428
type: boolean
@@ -307,18 +311,7 @@ stages:
307311
displayName: 'Remove MSIX'
308312
309313
- ${{ if eq(parameters.Publish, 'true') }}:
310-
- task: UseMSStoreCLI@0
311-
displayName: Setup Microsoft Store Developer CLI
312-
313314
- ${{ if eq(parameters.Sign, 'true') }}:
314-
- powershell: >
315-
msstore reconfigure
316-
--tenantId $(MSSTORE_TENANT_ID)
317-
--sellerId $(MSSTORE_SELLER_ID)
318-
--clientId $(MSSTORE_CLIENT_ID)
319-
--clientSecret $(MSSTORE_CLIENT_SECRET)
320-
displayName: Authenticate Store CLI
321-
322315
- task: DownloadSecureFile@1
323316
name: sshkey
324317
inputs:
@@ -331,6 +324,13 @@ stages:
331324
workingDirectory: $(Pipeline.Workspace)
332325
displayName: 'Download PuTTY binaries'
333326
327+
- powershell: |
328+
mv "${env:UPLOAD_DIR}\*-store.msix*" (mkdir -Force ${env:STORE_UPLOAD_DIR}) -Verbose
329+
displayName: 'Move Store packages'
330+
env:
331+
UPLOAD_DIR: $(DIST_DIR)
332+
STORE_UPLOAD_DIR: $(STORE_DIST_DIR)
333+
334334
- ${{ if ne(parameters.PublishAppinstaller, 'true') }}:
335335
- powershell: |
336336
"Not uploading these files:"
@@ -340,26 +340,31 @@ stages:
340340
env:
341341
UPLOAD_DIR: $(DIST_DIR)
342342
343-
- powershell: |
344-
mv "${env:UPLOAD_DIR}\*-store.msix*" (mkdir -Force ${env:STORE_UPLOAD_DIR}) -Verbose
345-
displayName: 'Move Store packages'
346-
env:
347-
UPLOAD_DIR: $(DIST_DIR)
348-
STORE_UPLOAD_DIR: $(STORE_DIST_DIR)
343+
- ${{ if eq(parameters.PublishStore, 'true') }}:
344+
- task: UseMSStoreCLI@0
345+
displayName: Setup Microsoft Store Developer CLI
349346

350-
# We begin the submission but do not complete it, so the RM has a chance
351-
# to update metadata before going public. It also means we can do this
352-
# whether signed or not, since a test release can simply be deleted rather
353-
# than published. Existing drafts will be overwritten with new ones.
354-
- powershell: |
355-
$msix = Get-Item "${env:STORE_UPLOAD_DIR}\*.msixupload"
356-
"Uploading $msix"
357-
msstore publish -v -nc -id "${{ parameters.StoreAppId }}" $msix
358-
"MSIX is uploaded."
359-
"Finish publishing at https://partner.microsoft.com/en-us/dashboard/products/${{ parameters.StoreAppId }}/overview"
360-
displayName: 'Begin Store submission'
361-
env:
362-
STORE_UPLOAD_DIR: $(STORE_DIST_DIR)
347+
- powershell: >
348+
msstore reconfigure
349+
--tenantId $(MSSTORE_TENANT_ID)
350+
--sellerId $(MSSTORE_SELLER_ID)
351+
--clientId $(MSSTORE_CLIENT_ID)
352+
--clientSecret $(MSSTORE_CLIENT_SECRET)
353+
displayName: Authenticate Store CLI
354+
355+
# We begin the submission but do not complete it, so the RM has a chance
356+
# to update metadata before going public. It also means we can do this
357+
# whether signed or not, since a test release can simply be deleted rather
358+
# than published. Existing drafts will be overwritten with new ones.
359+
- powershell: |
360+
$msix = Get-Item "${env:STORE_UPLOAD_DIR}\*.msixupload"
361+
"Uploading $msix"
362+
msstore publish -v -nc -id "${{ parameters.StoreAppId }}" $msix
363+
"MSIX is uploaded."
364+
"Finish publishing at https://partner.microsoft.com/en-us/dashboard/products/${{ parameters.StoreAppId }}/overview"
365+
displayName: 'Begin Store submission'
366+
env:
367+
STORE_UPLOAD_DIR: $(STORE_DIST_DIR)
363368
364369
- powershell: |
365370
python ci\upload.py

0 commit comments

Comments
 (0)