-
-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (52 loc) · 1.58 KB
/
Copy pathdeploy.yml
File metadata and controls
60 lines (52 loc) · 1.58 KB
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
name: deploy
on:
push:
branches:
- master
jobs:
build_docs_and_deploy:
runs-on: ubuntu-latest
name: build up document and deploy
steps:
- name: Checkout
uses: actions/checkout@master
- name: Clone pre repositories
run: |
cd ..
git clone -b push https://github.com/nickcafferry/PSSpred.git manim
cd manim/
rm -rf "output results"
rm .git/hooks/post-checkout
- name: Install setuptools
run: |
cd ..
pip3 install --upgrade pip
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26
tar -zxvf setuptools-19.6.tar.gz
cd setuptools-19.6
sudo python3 setup.py build
sudo python3 setup.py install
- name: Install sphinx
run: |
cd ..
git clone https://github.com/sphinx-doc/sphinx
cd sphinx
pip3 install .
pip3 install sphinx_rtd_theme
pip3 install jieba
- name: Build document with Sphinx
run: |
rm -rf "output results"
rm .git/hooks/post-checkout
rm .git/hooks/post-commit
rm .git/hooks/pre-push
export PATH="$PATH:/home/runner/.local/bin:/home/runner/PSSpred/manim"
make html
cd build/html
echo "PSSpred-mlms.org" > CNAME
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/html