File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 }}
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 11configured_endpoints : 50
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-cd88dd75403e620991c3659cd7e9278f9c8c439f3857c25db8634dfc7e77a9b9.yml
33openapi_spec_hash : 35a0cbd0262458d633e38fc5ba442118
4- config_hash : eb7459746cbb47e3a1cc8c08a96824e2
4+ config_hash : a79df81e5bba11abab18a84163248141
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