Skip to content

Commit 5757b06

Browse files
chore: update SDK settings
1 parent 4361b35 commit 5757b06

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
publish:
1313
name: publish
1414
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
id-token: write
1815

1916
steps:
2017
- uses: actions/checkout@v6
@@ -27,3 +24,5 @@ jobs:
2724
- name: Publish to PyPI
2825
run: |
2926
bash ./bin/publish-pypi
27+
env:
28+
PYPI_TOKEN: ${{ secrets.CONTEXT_DEV_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ jobs:
1717
- name: Check release environment
1818
run: |
1919
bash ./bin/check-release-environment
20+
env:
21+
PYPI_TOKEN: ${{ secrets.CONTEXT_DEV_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 20
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-3a8af8deb24e840300df2b1a74edfb075287af9f38e6d343960ba75fce00ab68.yml
33
openapi_spec_hash: acc99bb843c5c7d630bc2a80b1b97444
4-
config_hash: 2b9a3f5957d6fe15f0e53b32642b99fa
4+
config_hash: 6a29c655ea7e0ed36e04028391773e60

bin/check-release-environment

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
errors=()
44

5+
if [ -z "${PYPI_TOKEN}" ]; then
6+
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
7+
fi
8+
59
lenErrors=${#errors[@]}
610

711
if [[ lenErrors -gt 0 ]]; then

bin/publish-pypi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@ set -eux
44
rm -rf dist
55
mkdir -p dist
66
uv build
7-
if [ -n "${PYPI_TOKEN:-}" ]; then
8-
uv publish --token=$PYPI_TOKEN
9-
else
10-
uv publish
11-
fi
7+
uv publish --token=$PYPI_TOKEN

0 commit comments

Comments
 (0)