Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Codex/winget auto update (#12943)

iceweasel-oai8ede18011a87
diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml
index 48d6b90bf4..7bd4369fd5 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: