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
1916
2017 steps :
2118 - uses : actions/checkout@v6
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 }}
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 : 3f508a2d5edc17b7b4f18fd7112c2faa
4+ config_hash : eb7459746cbb47e3a1cc8c08a96824e2
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+
59lenErrors=${# errors[@]}
610
711if [[ lenErrors -gt 0 ]]; then
Original file line number Diff line number Diff line change 44rm -rf dist
55mkdir -p dist
66uv 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
You can’t perform that action at this time.
0 commit comments