From 061fd7a5b3b460d7860bcb8903852590b4767fc2 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 13 May 2025 21:34:32 +0100 Subject: [PATCH] Enable publishing a release to python.org without triggering auto-updates --- ci/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ci/release.yml b/ci/release.yml index 1542c62..7fd743e 100644 --- a/ci/release.yml +++ b/ci/release.yml @@ -15,6 +15,10 @@ parameters: displayName: "Publish" type: boolean default: false +- name: PublishAppinstaller + displayName: "Auto-update users to this release" + type: boolean + default: false - name: PreTest displayName: "Pre test" type: boolean @@ -295,6 +299,15 @@ stages: workingDirectory: $(Pipeline.Workspace) displayName: 'Download PuTTY binaries' + - ${{ if ne(parameters.PublishAppinstaller, 'true') }}: + - powershell: | + "Not uploading these files:" + dir "${env:UPLOAD_DIR}\*.appinstaller" + del "${env:UPLOAD_DIR}\*.appinstaller" -ErrorAction SilentlyContinue + displayName: 'Disable auto-update for this release' + env: + UPLOAD_DIR: $(DIST_DIR) + - powershell: | # We don't want the Store MSIX on python.org, so just delete it # It's already been archived in the earlier publish step, and is bundled