Skip to content

Commit d5df30c

Browse files
chore: update SDK settings
1 parent 72acc9f commit d5df30c

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -30,3 +27,5 @@ jobs:
3027
- name: Publish to PyPI
3128
run: |
3229
bash ./bin/publish-pypi
30+
env:
31+
PYPI_TOKEN: ${{ secrets.HUBSPOT_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.HUBSPOT_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 959
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-9a09454168aa8407ad8cf09c4069efe1e15dcdd41f69d811f3f9763d54ef2c83.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-10670e8b046a913d525c58235f039117e5c43c6657818de8c1b5050e5ffa6a60.yml
33
openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1
4-
config_hash: 79eb93dd39cf6ad577c8c1684645978a
4+
config_hash: 1a2418ad0ae52279c366cfde5b84ac87

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
@@ -3,8 +3,4 @@
33
set -eux
44
mkdir -p dist
55
rye build --clean
6-
if [ -n "${PYPI_TOKEN:-}" ]; then
7-
rye publish --yes --token=$PYPI_TOKEN
8-
else
9-
rye publish --yes
10-
fi
6+
rye publish --yes --token=$PYPI_TOKEN

0 commit comments

Comments
 (0)