File tree Expand file tree Collapse file tree 6 files changed +11
-19
lines changed
Expand file tree Collapse file tree 6 files changed +11
-19
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 : 15
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-252ab435934e85d5f76957188c64906abf76a0351c5861383327cb1297a2ac8a .yml
3- openapi_spec_hash : ed801bb30428c1c66cb0af97e3f6ee9c
4- config_hash : b39effa64874ba589480760347b915be
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-8e7a3c9ef00ac517caaa193265398850b6925ab898aaf84e83e28c9f023c0ba8 .yml
3+ openapi_spec_hash : ebf53d80dd9066d5ac9401f1493544e3
4+ config_hash : 253e4b5ca01236d448980a78491c17c5
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
Original file line number Diff line number Diff line change @@ -26,13 +26,6 @@ class VariantSource(BaseModel):
2626 skill_path : str
2727 """Path to the skill definition file within the repository"""
2828
29- worker_host : Optional [str ] = None
30- """
31- Self-hosted worker host that reported this skill. Present only for skills
32- discovered from self-hosted workers (as opposed to skills from GitHub repos
33- linked to environments).
34- """
35-
3629
3730class Variant (BaseModel ):
3831 id : str
You can’t perform that action at this time.
0 commit comments