Skip to content

Commit 01a998a

Browse files
chore: update SDK settings
1 parent b7e80bb commit 01a998a

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
name: publish
1414
runs-on: ubuntu-latest
1515
environment: production
16+
permissions:
17+
contents: read
18+
id-token: write
1619

1720
steps:
1821
- uses: actions/checkout@v6
@@ -25,5 +28,3 @@ jobs:
2528
- name: Publish to PyPI
2629
run: |
2730
bash ./bin/publish-pypi
28-
env:
29-
PYPI_TOKEN: ${{ secrets.DEDALUS_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ jobs:
1818
- name: Check release environment
1919
run: |
2020
bash ./bin/check-release-environment
21-
env:
22-
PYPI_TOKEN: ${{ secrets.DEDALUS_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: 26
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs%2Fdedalus-8209ddf6d2b12680c9d569e68ad89c347a59dcad5de4b2e5144ab9e2d6a41cbf.yml
33
openapi_spec_hash: 220a31347115af6017c6d2e7555343c3
4-
config_hash: 67a0b9d99137662f1feaafdb112ef4de
4+
config_hash: 422df9ee9c681652717a66fa1fc8b0ea

bin/check-release-environment

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
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-
95
lenErrors=${#errors[@]}
106

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

bin/publish-pypi

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

0 commit comments

Comments
 (0)