-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 949 Bytes
/
docs.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
name: Update Docs
on:
push:
branches: [main]
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: "gh-pages"
- name: Create conda environment
run: conda create --quiet -c conda-forge --name guts
- name: Generate Docs
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
root=$PWD
source activate guts
ls
cd /tmp
git clone https://github.com/singularityhub/guts
cd guts
pip install -e .
cd docs
pip install -r requirements.txt
make html
mv $root/.git _build/html/.git
rm -rf $root
mv _build/html $root
cd $root
touch .nojekyll
ls
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: .