v2.4.6 #13
Workflow file for this run
This file contains 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
name: Publish Python Package | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Setup Python | |
run: uv python install 3.11 | |
- name: Install dependencies | |
run: uv sync --dev | |
- name: Build distributions | |
run: uvx --from build pyproject-build --installer uv | |
- name: Publish the package | |
run: uvx twine upload --password ${{ secrets.PYPI_API_TOKEN }} dist/* |