Update environment.yml #17
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: documentation | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependancies for building documentation. | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install sphinx sphinx_rtd_theme | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Build the documentation | |
run: | | |
cd docs | |
make html | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: docs | |
path: /home/runner/work/vformer/vformer/docs/_build/html | |
if-no-files-found: error | |
retention-days: 20 |