-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8f5c9e
commit e993743
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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 dependencies and Build HTML files | ||
run: | | ||
conda install -c conda-forge graph-tool | ||
conda install -c conda-forge sphinx | ||
git clone https://github.com/potassco/clorm | ||
cd clorm | ||
pip install . | ||
cd .. | ||
python3 setup.py install | ||
pip install sphinx-copybutton | ||
pip install furo | ||
cd sphinx-build | ||
make clean html | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: sphinx-build/_build/html | ||
target-folder: docs |