Skip to content

make DCPSaver OSS compatible #118

make DCPSaver OSS compatible

make DCPSaver OSS compatible #118

name: Build and Update Docs
on:
push:
branches: [ master ]
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build_and_publish_docs:
runs-on: ubuntu-latest
permissions:
# Grant write permission here so that the doc can be pushed to gh-pages branch
contents: write
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Setup conda env
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: test
python-version: "3.10"
- name: Install dependencies
shell: bash -l {0}
run: |
set -eux
conda activate test
pip install -r requirements.txt
pip install -r dev-requirements.txt
conda install pytorch cpuonly -c pytorch-nightly
python setup.py sdist bdist_wheel
pip install dist/*.whl
- name: Build docs
shell: bash -l {0}
run: |
set -eux
conda activate test
cd docs
pip install -r requirements.txt
make html
touch build/html/.nojekyll
cd ..
- name: Deploy docs to Github pages
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/build/html # The folder the action should deploy.
target-folder: master