v0.1.1 #2
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: poetry-publish | |
| on: | |
| release: | |
| types: [released] | |
| env: | |
| PYTHON_VERSION: "3.13" | |
| POETRY_VERSION: "1.8.5" | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install poetry | |
| run: pipx install poetry==${{ env.POETRY_VERSION }} --python ${{ env.PYTHON_VERSION }} | |
| - name: Install dependencies | |
| run: | | |
| poetry install --only main,docs | |
| - name: Create Documentation | |
| run: | | |
| poetry run python -m docs | |
| - name: Upload GH Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/public | |
| - name: Build and publish | |
| env: | |
| POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | |
| run: | | |
| poetry version $(git describe --tags) | |
| poetry build | |
| poetry publish |