v0.7.0 🌈 #8
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
| name: Push cli to PyPI | |
| on: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| name: "Build pip package" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout Action" | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: "Set version to pyproject.toml and __init__.py" | |
| run: | | |
| python scripts/set_version.py ${{ github.event.release.tag_name }} | |
| - name: "Build and publish to pypi" | |
| uses: JRubics/poetry-publish@v2.0 | |
| with: | |
| pypi_token: ${{ secrets.PYPI_TOKEN }} | |
| python_version: "3.12" |