Skip to content

Commit a41b0dd

Browse files
chore: update SDK settings
1 parent 5759a86 commit a41b0dd

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.NEPTUNE_API_V2_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.NEPTUNE_API_V2_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: 50
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-cd88dd75403e620991c3659cd7e9278f9c8c439f3857c25db8634dfc7e77a9b9.yml
33
openapi_spec_hash: 35a0cbd0262458d633e38fc5ba442118
4-
config_hash: eb7459746cbb47e3a1cc8c08a96824e2
4+
config_hash: a79df81e5bba11abab18a84163248141

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)