Skip to content

Merge pull request #158 from openforcefield/deploy-openfe-0.11.0 #20

Merge pull request #158 from openforcefield/deploy-openfe-0.11.0

Merge pull request #158 from openforcefield/deploy-openfe-0.11.0 #20

Workflow file for this run

name: "Docs - build and deploy"
on:
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
shell: bash -l {0}
jobs:
build-and-deploy:
name: "Docs - build and deploy"
runs-on: ubuntu-latest
env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
use-mamba: true
python-version: "3.10"
miniforge-variant: Mambaforge
environment-file: devtools/conda-envs/docs.yml
activate-environment: alchemiscale-docs
- name: Decrypt OpenEye license
if: ${{ !github.event.pull_request.head.repo.fork }}
env:
OE_LICENSE_TEXT: ${{ secrets.OE_LICENSE }}
run: |
echo "${OE_LICENSE_TEXT}" > ${OE_LICENSE}
python -c "import openeye; assert openeye.oechem.OEChemIsLicensed(), 'OpenEye license checks failed!'"
- name: "Install"
run: python -m pip install --no-deps -e .
- name: "Build docs"
run: |
cd docs
make html
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.