Fixes a bug where the local_ttl was not being calculated correctly le… #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: docs | |
| on: | |
| push: | |
| branches: [ 'main', 'dev' ] | |
| env: | |
| PYTHON_VERSION: "3.12" | |
| permissions: | |
| contents: write | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| environment: github-pages | |
| steps: | |
| - name: Checkout latest | |
| uses: actions/checkout@v4 | |
| with: { fetch-depth: 0 } | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: { python-version: "3.12" } | |
| - name: Install UV | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install project using UV | |
| run: | | |
| cd docs | |
| uv tool install . || exit 0 | |
| # NB: until uv is able to handle packages without executables we need to use an " || exit 0" | |
| - name: Build docs and publish | |
| run: | | |
| cd docs | |
| uv run --active -- bash -xc 'mkdocs --version' | |
| uv run --active -- bash -xc 'mkdocs gh-deploy --force' |