| 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/anthropics/anthropic-sdk-python/actions/workflows/publish-pypi.yml |
| 3 |
name: Publish PyPI |
| 4 |
on: |
| 5 |
workflow_dispatch: |
| 6 |
|
| 7 |
jobs: |
| 8 |
publish: |
| 9 |
name: publish |
| 10 |
runs-on: ubuntu-latest |
| 11 |
environment: production-release |
| 12 |
permissions: |
| 13 |
contents: read |
| 14 |
id-token: write |
| 15 |
|
| 16 |
steps: |
| 17 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 18 |
|
| 19 |
- name: Install uv |
| 20 |
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 |
| 21 |
with: |
| 22 |
version: '0.9.13' |
| 23 |
|
| 24 |
- name: Publish to PyPI |
| 25 |
run: | |
| 26 |
bash ./bin/publish-pypi |