Skip to content

Commit 061fd7a

Browse files
committed
Enable publishing a release to python.org without triggering auto-updates
1 parent 9a150b3 commit 061fd7a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ci/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ parameters:
1515
displayName: "Publish"
1616
type: boolean
1717
default: false
18+
- name: PublishAppinstaller
19+
displayName: "Auto-update users to this release"
20+
type: boolean
21+
default: false
1822
- name: PreTest
1923
displayName: "Pre test"
2024
type: boolean
@@ -295,6 +299,15 @@ stages:
295299
workingDirectory: $(Pipeline.Workspace)
296300
displayName: 'Download PuTTY binaries'
297301
302+
- ${{ if ne(parameters.PublishAppinstaller, 'true') }}:
303+
- powershell: |
304+
"Not uploading these files:"
305+
dir "${env:UPLOAD_DIR}\*.appinstaller"
306+
del "${env:UPLOAD_DIR}\*.appinstaller" -ErrorAction SilentlyContinue
307+
displayName: 'Disable auto-update for this release'
308+
env:
309+
UPLOAD_DIR: $(DIST_DIR)
310+
298311
- powershell: |
299312
# We don't want the Store MSIX on python.org, so just delete it
300313
# It's already been archived in the earlier publish step, and is bundled

0 commit comments

Comments
 (0)