Forcing pip to 24.0 version in GitHub workdflows. (#361) #88
This file contains 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 & Deploy Docs Site (on-merge) | |
on: | |
push: | |
paths: | |
- '.github/workflows/docs-site.yml' | |
- 'docs/**' | |
- 'mkdocs.yml' | |
- 'mlcube/mlcube/__main__.py' | |
- 'mlcube/mlcube/cli.py' | |
jobs: | |
docs: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Python dependencies | |
run: | | |
# FIX sergey https://github.com/mlcommons/mlcube/issues/360 | |
# python -m pip install --upgrade pip | |
python -m pip install pip==24.0 | |
pip install -r docs/requirements.txt | |
- name: Build Docs | |
working-directory: './' | |
run: | | |
export PYTHONPATH=$(pwd)/mlcube:${PYTHONPATH} | |
mkdocs build --site-dir ../site/ | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3.6.4 | |
with: | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ../site | |
allow_empty_commit: true |