Bump Version to 0.2.2 (#24) #6
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: CD | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish-package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv and set Python | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: "3.10" | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Sync dependencies | |
| run: uv sync --locked --all-extras --all-groups | |
| - name: Build package | |
| run: uv build | |
| - name: Publish publish-package | |
| run: uv publish --token ${{ secrets.PYPI_TOKEN }} | |
| publish-docs: | |
| runs-on: ubuntu-latest | |
| needs: publish-package | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv and set Python | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: "3.10" | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Sync dependencies | |
| run: uv sync --locked --all-extras --all-groups | |
| - name: Build Docs | |
| run: uv run sphinx-build -b html docs/source docs/build | |
| - name: Publish to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/build |