name: build-docs on: push: branches: - main pull_request: branches: - main permissions: contents: read pages: write id-token: write concurrency: group: pages-${{ github.ref }} cancel-in-progress: false jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: astral-sh/setup-uv@v10.0.1 - run: uv sync --group dev - run: uv run zensical build - uses: actions/configure-pages@v6 if: github.event_name == 'push' - uses: actions/upload-pages-artifact@v5 if: github.event_name == 'push' with: path: ./site deploy: needs: build if: github.event_name == 'push' runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment uses: actions/deploy-pages@v5