Updates to docs content and tone #4
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: Build docs and publish to Bunny.net | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| uv sync | |
| - name: Build docs | |
| run: | | |
| uv run --with-requirements docs/requirements.txt sphinx-build -b html docs docs/_build/html | |
| - name: Deploy to BunnyCDN | |
| uses: ayeressian/bunnycdn-storage-deploy@v2.3.0 # | |
| with: | |
| source: "./docs/_build/html" | |
| destination: "." | |
| storageZoneName: "${{ secrets.STORAGE_NAME }}" | |
| storagePassword: "${{ secrets.STORAGE_PASSWORD }}" | |
| accessKey: "${{ secrets.STORAGE_KEY }}" | |
| pullZoneId: "${{ secrets.ZONE_ID }}" | |
| upload: "true" | |
| remove: "true" | |
| purgePullZone: "true" | |
| purgePullZoneDelay: "5" |