Merge pull request #90 from NNPDF/use-rich-click #102
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
# Deploy documentation into the Github Page | |
name: docs | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
deploy-ghpages: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
python-version: ["3.10"] | |
fail-fast: false | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
- name: Set up Python 🐍 | |
id: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages 📦 | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./docs/docs-requirements.txt | |
- name: Build 🔨 | |
run: | | |
cd docs/ | |
make html | |
touch build/html/.nojekyll | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.DEPLOY_DOCS }} | |
BRANCH: gh-pages | |
FOLDER: "docs/build/html" |