Publish stubs #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/publish-stubs.yml | |
| name: Publish stubs to PyPI | |
| on: | |
| push: | |
| tags: ["v*.*.*"] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - name: Generate stubs | |
| run: uv run alpaca generate-stubs student | |
| - name: Build | |
| working-directory: .alpaca/stubs | |
| run: uv build | |
| - name: Publish to PyPI | |
| working-directory: .alpaca/stubs | |
| run: uv publish |