.github/workflows/release-windows.yml builds and publishes a Windows release. ADR 0005 says why MSIX, self-contained, Native AOT, Artifact Signing and winget, and ADR 0020 why App Installer files, the beta channel and the app's own check. An agent runs these commands when the maintainer says to release; it never creates the tag on its own.
TablePro_<package>_x64_arm64.msixbundleon the GitHub release, withSHA256SUMS: the x64 and Arm64 MSIX in one bundle, signed with Azure Artifact Signing. Windows installs the package for its own architecture.- Next to it, the channel's App Installer file:
TablePro.appinstallerfor a release,TablePro-Beta.appinstallerfor a beta. ItsUriis the channel's file below, so opening it installs the channel's newest build and keeps the install on that channel. - The channel's file on
gh-pages, deployed tohttps://updates.tablepro.app/windows/: a release movesTablePro.appinstaller, andTablePro-Beta.appinstallertoo unless a newer beta is out; a beta movesTablePro-Beta.appinstaller.windows/ci/appinstaller.py channelsrefuses to move a channel to a lower version. - For a release, not a beta: a pull request to microsoft/winget-pkgs that adds
TablePro.TableProX.Y.Z, sowinget install TablePro.TableProgets it once Microsoft merges it.
- A tag is
windows-vX.Y.Zfor a release orwindows-vX.Y.Z-beta.Nfor a beta, each of X, Y and Z at most 65535 and N from 1 to 98. There is no other pre-release. - The package version is
X.Y.Z.Nfor a beta andX.Y.Z.99for the release: MSIX orders the four numbers, so a beta sorts below its release and above the release before it.python3 windows/ci/appinstaller.py version <version>prints it with the channel. - The tag is the only place the version is written. The workflow sets the package version in
Package.appxmanifestand passes the tag's version as-p:Version, which Settings shows. A local build keeps the csproj's0.1.0.
The maintainer does these once, in this order: a tag runs the workflow file at the tagged commit, so the rulesets come before any secret. The workflow's header names the same secrets and variables. Until steps 1 to 5 are done, a run builds and checks unsigned packages and publishes nothing.
- Rulesets: add
windows-v*to the tag rulesets, so its tags never move and only admins create them (.claude/rules/ci.md, Required checks). - Artifact Signing: an Azure Artifact Signing account, its identity validation, and a Public Trust certificate profile (quickstart).
- An app registration with the Artifact Signing Certificate Profile Signer role on the account, and a federated credential for GitHub Actions: organization
TableProApp, repositoryTablePro, entity Environment, namewindows-release(Authenticating with OpenID Connect). - Environment
windows-release, deploying fromwindows-v*tags only, with a required reviewer, and the secretsAZURE_CLIENT_ID,AZURE_TENANT_IDandAZURE_SUBSCRIPTION_ID. - Repository variables:
WINDOWS_SIGNING_ENDPOINT: the account's regional endpoint, such ashttps://eus.codesigning.azure.net/.WINDOWS_SIGNING_ACCOUNTandWINDOWS_SIGNING_PROFILE: the account and its certificate profile.WINDOWS_PUBLISHER: the certificate profile's subject, exactly as the certificate shows it, such asCN=Name, O=Name, L=City, S=State, C=Country. The package's Publisher has to match it, or signing fails. It also fixes the package family name, and Windows takes a package with another publisher for another app, so it never changes after the first release.
- Environment
github-pages: add the tag patternwindows-v*besidev*to its deployment branches and tags before the first tag, or the channel files reachgh-pagesand Pages refuses to deploy them:gh api --method POST repos/TableProApp/TablePro/environments/github-pages/deployment-branch-policies -f name='windows-v*' -f type=tag. - Environment
windows-winget, deploying fromwindows-v*tags only, with a required reviewer, and the secretWINGET_TOKEN: a classic token with thepublic_reposcope (wingetcreate, token). That scope writes to every public repository its account can, so the account is one outside TableProApp whose only use is its fork of microsoft/winget-pkgs.
-
Dry run. It builds, checks, installs and starts both packages as the tag does, writes the channel files into a copy of
gh-pagesand shows the change, and publishes nothing. Pass a beta's version, such as0.2.0-beta.1, to dry-run a beta. With-f sign=trueit signs too, oncewindows-releasealso allowsmain; never a branch pattern, since whoever writes the branch writes the workflow that runs with the signing secrets.gh workflow run release-windows.yml --ref main -f version=X.Y.Z
-
The tag, on a
maincommit whose CI push run is green:git fetch origin --tags gh run list --workflow ci.yml --branch main --event push --commit <commit> git tag -s windows-vX.Y.Z -m windows-vX.Y.Z <commit> git push origin windows-vX.Y.Z
A beta's tag is
windows-vX.Y.Z-beta.N, from the same kind of commit:git tag -s windows-vX.Y.Z-beta.N -m windows-vX.Y.Z-beta.N <commit> git push origin windows-vX.Y.Z-beta.N
-
The workflow,
gh run list --workflow release-windows.yml --limit 3:- Builds an MSIX per architecture: Release configuration, the core in Cargo's release profile, Native AOT. It fails when the package's version, architecture or Windows 10 1809 floor is wrong, when it depends on a framework package, when
TablePro.dllis in it, or when a binary in it imports the VC++ redistributable. - Bundles both under the package version, signs the bundle, which signs the packages in it, and writes the channel's App Installer file for it. A reviewer approves the step.
- Installs the bundle on Windows Server 2022 (x64, build 20348, the oldest Windows a hosted runner has) and Windows 11 (Arm64), and runs
TheInstalledPackageStartsAndKeepsItsFilesInLocalStatefrom the UI tests on each, in light and dark. - For a release, writes the winget manifest and runs
winget validateon it. - Publishes the GitHub release with the bundle, the App Installer file and
SHA256SUMS, a pre-release for a beta, which a reviewer approves. The repository's latest release stays the macOS one. - Tries the channel files on a copy of
gh-pagesin a job with no write access, then the GitHub release job moves them ongh-pagesitself, one release at a time, and Pages deploys them, so installs on that channel find the update. - For a release, opens the winget-pkgs pull request with wingetcreate, which a reviewer approves.
- Builds an MSIX per architecture: Release configuration, the core in Cargo's release profile, Native AOT. It fails when the package's version, architecture or Windows 10 1809 floor is wrong, when it depends on a framework package, when
-
Afterwards: check that
https://updates.tablepro.app/windows/TablePro.appinstaller(orTablePro-Beta.appinstaller) names the new version, and watch the winget-pkgs pull request. Its bots validate and install the package, and a label such asNeeds-Author-Feedbackwaits for an answer.
- Nothing reaches users before the GitHub release job. Tags never move: a code fix lands on
mainand ships as the next number. - The channel push or Pages failed after the GitHub release:
gh run rerun <run> --failedruns them again. The release job finds its release made and pushes the files, and pushing a channel file that already names the version changes nothing. - A runner or network failure:
gh run rerun <run> --failed. - winget-pkgs rejects the pull request: fix
windows/ci/winget-manifest.pyonmain, run it on the published bundle with the family name the install step printed, and submit that folder withwingetcreate submit. The release stays as published.