diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 42b6aff..cdbb6ed 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v5 - - run: uv sync --group docs + - run: uv sync --extra docs - run: uv run mkdocs build --strict - uses: actions/upload-pages-artifact@v3 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bddcd7f..0743330 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,35 +2,23 @@ name: Publish on: push: - branches: ["main"] + tags: ["v*"] permissions: - contents: write id-token: write # required for PyPI Trusted Publishing jobs: - bump-and-publish: + publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - uses: astral-sh/setup-uv@v5 - - name: Configure git - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + - run: uv sync --all-extras - - name: Bump patch version - run: | - uv add --dev bump-my-version - uv run bump-my-version bump patch --commit --tag - - - name: Push commit and tag - run: git push --follow-tags + - name: Run tests + run: uv run pytest - name: Build run: uv build