-
Notifications
You must be signed in to change notification settings - Fork 23
93 lines (79 loc) · 2.65 KB
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: github pages
on:
push:
branches:
- main
- docs
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Clean Ubuntu Image
uses: kfir4444/free-disk-space@main
with:
# This may remove tools actually needed - currently does not
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
environment-file: environment.yml
activate-environment: arc_env
miniconda-version: latest
conda-solver: libmamba
# - name: Setup Mambaforge Python 3.7
# uses: conda-incubator/setup-miniconda@v3
# with:
# python-version: 3.7
# mamba-version: "*"
# activate-environment: anaconda-client-env
# environment-file: environment.yml
# - name: Update environment
# run: |
# mamba env update -n arc_env -f environment.yml
# conda list
- name: Install LaTeX
run: |
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install texlive-latex-base -y
sudo apt-get install texlive-latex-extra -y
sudo apt-get install -y dvipng
- name: Install codecov
run: mamba install -y -c conda-forge codecov
- name: Install dependencies
run: |
echo 'export PYTHONPATH=$PYTHONPATH:'"$(pwd)" >> $GITHUB_ENV
echo 'export PATH=$PATH:'"$(pwd)" >> $GITHUB_ENV
cd ..
git clone https://github.com/ReactionMechanismGenerator/RMG-database
git clone https://github.com/ReactionMechanismGenerator/RMG-Py
cd RMG-Py
echo 'export PYTHONPATH=$PYTHONPATH:'"$(pwd)" >> $GITHUB_ENV
echo 'export PATH=$PATH:'"$(pwd)" >> $GITHUB_ENV
conda activate arc_env && make
cd ../ARC/
- name: Compile docs
run: |
echo 'export PYTHONPATH=$PYTHONPATH:'"$(pwd)" >> $GITHUB_ENV
echo 'export PATH=$PATH:'"$(pwd)" >> $GITHUB_ENV
conda activate arc_env
cd ../RMG-Py
echo 'export PYTHONPATH=$PYTHONPATH:'"$(pwd)" >> $GITHUB_ENV
echo 'export PATH=$PATH:'"$(pwd)" >> $GITHUB_ENV
cd ../ARC/docs/
conda activate arc_env && make html
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/
# https://github.com/marketplace/actions/github-pages-action