-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (51 loc) · 1.52 KB
/
build.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
51
52
53
54
55
56
name: Build and Deploy
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
activate-conda: true
conda-channels: anaconda, conda-forge
- name: Install required dependencies
run: |
conda install -c conda-forge graph-tool
pip install Sphinx
git clone https://github.com/potassco/clorm
cd clorm
pip install .
cd ..
python3 setup.py install
pip install sphinx-copybutton
pip install furo
pip install wheel
pip install twine
- name: Build HTML files
run: |
cd sphinx-build
make clean html
- name: Publish to Pypi
run: |
git config --list --show-origin
git config --local user.name "gunfoldspypi"
git config --local user.email "[email protected]"
git config --list --show-origin
ls -alhF ~/.ssh/
ssh-keygen -t rsa -b 4096 -C "[email protected]"
bash version_update.sh
python3 setup.py sdist bdist_wheel
twine upload dist/* -u ${{secrets.PYPI_USER}}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: sphinx-build/_build/html
target-folder: docs