File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # workflow for re-running publishing to PyPI in case it fails for some reason
2- # you can run this workflow by navigating to https://www.github.com/isaacus-dev/isaacus-python/actions/workflows/publish-pypi.yml
1+ # This workflow is triggered when a GitHub release is created.
2+ # It can also be run manually to re-publish to PyPI in case it failed for some reason.
3+ # You can run this workflow by navigating to https://www.github.com/isaacus-dev/isaacus-python/actions/workflows/publish-pypi.yml
34name : Publish PyPI
45on :
56 workflow_dispatch :
67
8+ release :
9+ types : [published]
10+
711jobs :
812 publish :
913 name : publish
Original file line number Diff line number Diff line change 1818 run : |
1919 bash ./bin/check-release-environment
2020 env :
21- STAINLESS_API_KEY : ${{ secrets.STAINLESS_API_KEY }}
2221 PYPI_TOKEN : ${{ secrets.ISAACUS_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 11configured_endpoints : 2
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-861e8a85f0fb73cf4b7fc6c2b27722072ff33109459e90c17be24af15dfcbd0c .yml
3- openapi_spec_hash : 644a0383600633ee604bb1e5b9ca025d
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-d58ccd91625a3b12fd8d1ceece128b604010bd840096000287c927cb5dcf79eb .yml
3+ openapi_spec_hash : 22c8c973d55f26649e9df96c89ea537f
44config_hash : 1d603d50b7183a492ad6df5f728a1863
Original file line number Diff line number Diff line change 22
33errors=()
44
5- if [ -z " ${STAINLESS_API_KEY} " ]; then
6- errors+=(" The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub." )
7- fi
8-
95if [ -z " ${PYPI_TOKEN} " ]; then
106 errors+=(" The ISAACUS_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets." )
117fi
You can’t perform that action at this time.
0 commit comments