Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

make vercel webhook url an env secret (#24778)

sayan-oai155905cf725d
diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml
index 29d61d6a54..eaf886cd01 100644
--- a/.github/workflows/rust-release.yml
+++ b/.github/workflows/rust-release.yml
@@ -1282,19 +1282,6 @@ jobs:
tag: ${{ github.ref_name }}
config: .github/dotslash-argument-comment-lint-config.json
- - name: Trigger developers.openai.com deploy
- # Only trigger the deploy if the release is not a pre-release.
- # The deploy is used to update the developers.openai.com website with the new config schema json file.
- if: ${{ env.SIGN_MACOS == 'true' && !contains(steps.release_name.outputs.name, '-') }}
- continue-on-error: true
- env:
- DEV_WEBSITE_VERCEL_DEPLOY_HOOK_URL: ${{ secrets.DEV_WEBSITE_VERCEL_DEPLOY_HOOK_URL }}
- run: |
- if ! curl -sS -f -o /dev/null -X POST "$DEV_WEBSITE_VERCEL_DEPLOY_HOOK_URL"; then
- echo "::warning title=developers.openai.com deploy hook failed::Vercel deploy hook POST failed for ${GITHUB_REF_NAME}"
- exit 1
- fi
-
# Publish to npm using OIDC authentication.
# July 31, 2025: https://github.blog/changelog/2025-07-31-npm-trusted-publishing-with-oidc-is-generally-available/
# npm docs: https://docs.npmjs.com/trusted-publishers
@@ -1507,6 +1494,36 @@ jobs:
packages-dir: dist/python-runtime
skip-existing: true
+ deploy-dev-website:
+ name: Trigger developers.openai.com deploy
+ needs: release
+ # Only trigger the deploy for a stable signed release.
+ # The deploy updates developers.openai.com with the new config schema json file.
+ if: >-
+ ${{
+ !cancelled() &&
+ needs.release.result == 'success' &&
+ needs.release.outputs.sign_macos == 'true' &&
+ !contains(needs.release.outputs.version, '-')
+ }}
+ runs-on: ubuntu-latest
+ continue-on-error: true
+ permissions: {}
+ environment:
+ name: dev-website-vercel-deploy
+ deployment: false
+
+ steps:
+ - name: Trigger developers.openai.com deploy
+ continue-on-error: true
+ env:
+ DEV_WEBSITE_VERCEL_DEPLOY_HOOK_URL: ${{ secrets.DEV_WEBSITE_VERCEL_DEPLOY_HOOK_URL }}
+ run: |
+ if ! curl -sS -f -o /dev/null -X POST "$DEV_WEBSITE_VERCEL_DEPLOY_HOOK_URL"; then
+ echo "::warning title=developers.openai.com deploy hook failed::Vercel deploy hook POST failed for ${GITHUB_REF_NAME}"
+ exit 1
+ fi
+
winget:
name: winget
needs: release