diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..52506e4 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,32 @@ +name: Publish docs + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + build-and-publish-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version-file: pyproject.toml + + - name: Set up uv + uses: astral-sh/setup-uv@v5 + with: + version: 0.6.11 + + - name: Install project + run: uv sync --group docs + + - name: Deploy to GitHub Pages + run: uv run mkdocs gh-deploy diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml similarity index 95% rename from .github/workflows/ci.yml rename to .github/workflows/test.yml index cbcf6f6..d9d44f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,9 @@ -name: tests +name: Run tests on: [pull_request, workflow_dispatch] jobs: - build-test: + test: runs-on: ubuntu-latest timeout-minutes: 60 steps: