Repository navigation
Plato v1.4.2 #31
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
| # This workflow will upload a Python Package using uv when a release is created. | |
| name: Upload the plato-learn Python Package to PyPI | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| on: | |
| release: | |
| types: | |
| - created | |
| jobs: | |
| build_and_deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Build package | |
| run: uv build | |
| - name: Publish package to PyPI | |
| run: uv publish --token ${{ secrets.PYPI_API_TOKEN }} |