File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed
Expand file tree Collapse file tree 5 files changed +9
-10
lines changed 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@v6
2427 - name : Publish to PyPI
2528 run : |
2629 bash ./bin/publish-pypi
27- env :
28- PYPI_TOKEN : ${{ secrets.OZ_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.OZ_API_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 11configured_endpoints : 14
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-a912e2533a6f1fbeee38d4b7739b771ed5711c648a6a7f3d8769b8b2cb4f31fb.yml
33openapi_spec_hash : ef48f8fcc46a51b00893505e9b52c95d
4- config_hash : 2aa9111d5020559664e110bed6e31388
4+ config_hash : e894152aaebba5a2e65e27efaf2712e2
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