v1 API on real Ray Serve (v0.6.0) (#46) #36
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
| # ================================= | |
| # Copyright: CEA-LIST/DIASI/SIALV | |
| # Author : pixano@cea.fr | |
| # License: CECILL-C | |
| # ================================= | |
| name: Build and Publish latest Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/**" | |
| - "mkdocs.yml" | |
| - "src/**" | |
| jobs: | |
| deploy_docs: | |
| name: Publish documentation website | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure git credentials | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Create cache_id for key creation | |
| run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
| - name: Create cache key with cache_id | |
| uses: actions/cache@v4 | |
| with: | |
| key: mkdocs-material-${{ env.cache_id }} | |
| path: .cache | |
| restore-keys: | | |
| mkdocs-material- | |
| - name: Install dependencies | |
| run: | | |
| pip install -e packages/pixano-inference-client # hard core dep, not yet on PyPI | |
| pip install .[docs] | |
| - name: Publish documentation website | |
| run: mike deploy --push --update-aliases latest |