-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (43 loc) · 1.15 KB
/
docs.yaml
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
name: docs flux-operator
on:
push:
branches: [main]
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: Create conda environment
run: conda create --quiet -c conda-forge --name fluxdocs sphinx-material
- name: Generate Docs
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
root=$PWD
source activate fluxdocs
git clone https://github.com/flux-framework/flux-operator /tmp/operator
cd /tmp/operator/docs
pip install -r requirements.txt
make html
echo
echo "ls"
ls
echo
echo "ls _build/html"
ls _build/html
mv $root/.git _build/html/.git
rm -rf $root
mv /tmp/operator/docs/_build/html $root
cd ${root}
echo "ls $root"
ls .
touch .nojekyll
git add .nojekyll || echo "Already added"
git add .
ls .
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6 # v4.4.1
with:
branch: gh-pages
folder: .