File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed
Expand file tree Collapse file tree 5 files changed +10
-9
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
1815
1916 steps :
2017 - uses : actions/checkout@v6
2724 - name : Publish to PyPI
2825 run : |
2926 bash ./bin/publish-pypi
27+ env :
28+ PYPI_TOKEN : ${{ secrets.DOCSTRANGE_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.DOCSTRANGE_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 11configured_endpoints : 9
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/nanonets%2Fdocstrange-a418fe45369669cc2d14b549ee010f3a7ee52f6e47fea3489e560d33064be099.yml
33openapi_spec_hash : 02f7f52faae1eb42188c290c32c25f10
4- config_hash : 61ade82f6ddf75edd008789d19f04a3a
4+ config_hash : b1979c16c99baf59cbbf8c7944a47297
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