Skip to content

ci: migrate from the deprecated microsoft/store-submission action to the MSStore CLI - #3

Open
azchohfi wants to merge 2 commits into
martinwoodward:mainfrom
azchohfi:migrate-to-msstore-cli
Open

azchohfi wants to merge 2 commits into
martinwoodward:mainfrom
azchohfi:migrate-to-msstore-cli

Conversation

@azchohfi

Copy link
Copy Markdown

Why

microsoft/store-submission is deprecated and the repository is being archived (see microsoft/store-submission#27). Archiving does not break anything — uses: microsoft/store-submission@v1 will keep resolving — but there will be no further fixes, features, or security updates, and it has open issues that will never be addressed (notably #20: no certificate or federated/managed-identity auth).

The supported replacement is the MSStore CLI, put on the runner by microsoft/microsoft-store-apppublisher (the action formerly named microsoft/setup-msstore-cli). It handles both packaged (MSIX) and unpackaged (MSI/EXE) apps and is actively maintained. microsoft/PowerToys already runs on it.

I'm doing a sweep of the repos still referencing the old action so nobody is caught out by the archive.

What changed

The store-submit job in .github/workflows/release.yml now sets up the MSStore CLI and submits via msstore publish.

Why it's not a 1:1 step swap

The previous step couldn't have worked as written:

uses: microsoft/store-submission@v1
with:
  command: UpdateAndSubmit
  productId: …
  packagePath: packages/

microsoft/store-submission has no UpdateAndSubmit command (only configure, get, update, poll, publish) and no productId/packagePath inputs — those names don't exist on the action. The job has 0 recorded runs, which matches.

This PR replaces it with the supported local-package path: msstore reconfigure for credentials, then msstore publish <package> --appId <id>.

One thing to check

msstore publish takes one .msix, .msixbundle or .msixupload. Your build runs with -p:AppxBundle=Never and uploads x64 and ARM64 as separate .msix artifacts, so there are two packages and no bundle. I added a Locate package to submit step that prefers a bundle and fails with an explicit message if it finds multiple bare .msix files, rather than silently submitting only one architecture.

To submit both architectures you'll want a single .msixbundle — either build with -p:AppxBundle=Always or bundle the two packages with makeappx bundle before this job. Happy to add that here if you'd like.

Command mapping used

microsoft/store-submission MSStore CLI
command: configure + tenant-id/seller-id/client-id/client-secret msstore reconfigure --tenantId … --sellerId … --clientId … --clientSecret …
command: update + product-update msstore submission update <productId> '<json>'
command: publish msstore submission publish <productId>
type: win32 / type: packaged dropped — the CLI resolves the product type itself

Notes

  • No secrets added or renamed — this uses exactly the same ones the workflow already referenced.
  • The JSON payload is unchanged. msstore submission update deserializes into UpdatePackagesRequest → { "packages": [ { packageUrl, languages, architectures, isSilentInstall, installerParameters, packageType, genericDocUrl, … } ] }, which is the same shape product-update took, so the payload carried over verbatim.
  • Secret values are passed via env: and referenced as shell variables rather than interpolated straight into the command line — same behaviour, and it keeps them out of the process command line.
  • I can't execute this pipeline against your Partner Center product, so please sanity-check before merging. Happy to adjust anything.

microsoft/store-submission is deprecated and its repository is being
archived. Switch to microsoft/microsoft-store-apppublisher + the
MSStore CLI, which is the supported replacement and covers both
packaged (MSIX) and unpackaged (MSI/EXE) applications.
microsoft/microsoft-store-apppublisher@v1.4 is a lightweight tag pointing
directly at a commit, so it can be moved. This step handles Partner Center
credentials, so pin the action to cc9910a8d59f2eb55cbb83df0a3800cf3b5300e0
and pin the CLI it downloads to v0.4.1 instead of the default 'latest'.

v0.4.1 is what 'latest' resolves to today, so this freezes current
behaviour rather than changing it.

microsoft/PowerToys pins this same action the same way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant