Skip to content

Commit 5759a86

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

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/publish-pypi.yml

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

2017
steps:
2118
- uses: actions/checkout@v6
@@ -28,3 +25,5 @@ jobs:
2825
- name: Publish to PyPI
2926
run: |
3027
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ 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: 3f508a2d5edc17b7b4f18fd7112c2faa
4+
config_hash: eb7459746cbb47e3a1cc8c08a96824e2

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)