Skip to content

test: https://github.com/conda-incubator/setup-miniconda?tab=readme-o… #462

test: https://github.com/conda-incubator/setup-miniconda?tab=readme-o…

test: https://github.com/conda-incubator/setup-miniconda?tab=readme-o… #462

Workflow file for this run

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: Setup Mambaforge Python 3.7
# uses: conda-incubator/setup-miniconda@v2
# with:
# environment-file: environment.yml
# miniforge-variant: Miniforge
# activate-environment: arc_env
# python-version: 3.7
# use-mamba: true
- name: Setup Mambaforge Python 3.7
uses: conda-incubator/setup-miniconda@v3
with:

Check failure on line 41 in .github/workflows/gh-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gh-pages.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
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