-
Notifications
You must be signed in to change notification settings - Fork 41
50 lines (43 loc) · 1.09 KB
/
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
name: pages
on:
push:
branches:
- main
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install pip==23.1.2 setuptools==67.7.2 wheel==0.40.0
pip install virtualenv==20.23.0 tox==4.5.1.1
# needs to install hd3 so the command-line pages are
# rendered properly
- name: Install HADDOCK3
run: |
pwd
ls -lsa
mkdir bin
touch bin/cns
cd src/fcc/src
chmod u+x Makefile
./Makefile 2>%1 >/dev/null || true
cd -
- name: Generate docs
run: |
tox -e docs
touch haddock3-docs/.nojekyll
- name: deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: haddock3-docs
GITHUB_TOKEN: ${{ secrets.PAGES }}