From 8ede18011a8723820630c3956188447777813335 Mon Sep 17 00:00:00 2001 From: iceweasel-oai Date: Fri, 6 Mar 2026 14:04:30 -0800 Subject: [PATCH] Codex/winget auto update (#12943) Publish CLI releases to winget. Uses https://github.com/vedantmgoyal9/winget-releaser to greatly reduce boilerplate needed to create winget-pkgs manifets --- .github/workflows/rust-release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index 48d6b90bf..7bd4369fd 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -643,6 +643,29 @@ jobs: exit "${publish_status}" done + winget: + name: winget + needs: release + # Only publish stable/mainline releases to WinGet; pre-releases include a + # '-' in the semver string (e.g., 1.2.3-alpha.1). + if: ${{ !contains(needs.release.outputs.version, '-') }} + # This job only invokes a GitHub Action to open/update the winget-pkgs PR; + # it does not execute Windows-only tooling, so Linux is sufficient. + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Publish to WinGet + uses: vedantmgoyal9/winget-releaser@19e706d4c9121098010096f9c495a70a7518b30f + with: + identifier: OpenAI.Codex + version: ${{ needs.release.outputs.version }} + release-tag: ${{ needs.release.outputs.tag }} + fork-user: openai-oss-forks + installers-regex: '^codex-(?:x86_64|aarch64)-pc-windows-msvc\.exe\.zip$' + token: ${{ secrets.WINGET_PUBLISH_PAT }} + update-branch: name: Update latest-alpha-cli branch permissions: