Update docs.yaml #8
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: Docs Build & Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - fix-deploy-yaml | |
| jobs: | |
| docs: | |
| name: Build and Deploy 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: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install uv | |
| uv sync | |
| - name: Build docs | |
| run: | | |
| make build-docs | |
| - name: Configure AWS CLI for Cloudflare R2 | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| aws-region: auto | |
| - name: Upload docs to Cloudflare R2 | |
| run: | | |
| aws s3 sync docs/_build/html s3://${{ vars.R2_BUCKET_NAME }} \ | |
| --endpoint-url https://${{ vars.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \ | |
| --delete |