Skip to content

Commit

Permalink
Fixup: github pages (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Mar 23, 2023
2 parents b13e4a3 + fafe186 commit 20865e9
Showing 1 changed file with 32 additions and 36 deletions.
68 changes: 32 additions & 36 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,44 +26,40 @@ jobs:
python-version: 3.7
use-mamba: true

- name: Install codecov
run: mamba install -y -c conda-forge codecov
- name: Update environment
run: |
mamba env update -n arc_env -f environment.yml
conda list
- name: Install dependencies
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
mamba activate arc_env
cd ..
git clone https://github.com/ReactionMechanismGenerator/RMG-Py
cd RMG-Py
export PYTHONPATH=$PYTHONPATH:$(pwd)
make
cd ..
git clone https://github.com/ReactionMechanismGenerator/RMG-database
cd ARC
mamba deactivate
make gcn-cpu
cd ..
echo $(pwd)
mamba activate arc_env
mamba list
- name: Install codecov
run: mamba install -y -c conda-forge codecov

- name: Compile docs
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
mamba activate arc_env
cd ..
cd RMG-Py
export PYTHONPATH=$PYTHONPATH:$(pwd)
cd ..
cd ARC
cd docs
make html
- name: Install dependencies
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
conda activate arc_env
cd ..
git clone https://github.com/ReactionMechanismGenerator/RMG-database
git clone https://github.com/ReactionMechanismGenerator/RMG-Py
cd RMG-Py
export PYTHONPATH=$PYTHONPATH:$(pwd)
make
cd ../ARC/
conda deactivate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/
- name: Compile docs
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
conda activate arc_env
cd ../RMG-Py
export PYTHONPATH=$PYTHONPATH:$(pwd)
cd ../ARC/docs/
make html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/

# https://github.com/marketplace/actions/github-pages-action

0 comments on commit 20865e9

Please sign in to comment.