File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 publish :
1313 name : publish
1414 runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ id-token : write
1518
1619 steps :
1720 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2427 - name : Publish to PyPI
2528 run : |
2629 bash ./bin/publish-pypi
27- env :
28- PYPI_TOKEN : ${{ secrets.ONLY_FANS_API_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 1717 - name : Check release environment
1818 run : |
1919 bash ./bin/check-release-environment
20- env :
21- PYPI_TOKEN : ${{ secrets.ONLY_FANS_API_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 11configured_endpoints : 266
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db07c6b53db2576d9205de576b179c9aaf9929c8342d14ebd5aebd7fe9079caf .yml
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba5efdf86108ef077f2db1f8a05b84d58f7f218fe2b7e0eb72e3c371cfa30015 .yml
33openapi_spec_hash : 6c2d47cd85674ece07dc37e471a36ac9
4- config_hash : daf28359a88850c2eaa3b208a6161584
4+ config_hash : 397c91e15c0024f8b5bbed9b82c2348c
Original file line number Diff line number Diff line change 22
33errors=()
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-
95lenErrors=${# errors[@]}
106
117if [[ lenErrors -gt 0 ]]; then
Original file line number Diff line number Diff line change 44rm -rf dist
55mkdir -p dist
66uv 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
You can’t perform that action at this time.
0 commit comments