forked from mordred-descriptor/mordred
-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 1.22 KB
/
docs.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
name: Documentation
on:
schedule:
- cron: "0 8 * * 1"
push:
branches: [main]
workflow_dispatch:
concurrency:
group: actions-id-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
name: Build and Push Documentation
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@main
with:
environment-name: temp
condarc: |
channels:
- defaults
- conda-forge
channel_priority: flexible
create-args: |
python=3.12
- name: Install Dependencies
run: |
conda install sphinx chardet
python -m pip install .[full] m2r
- name: Build Docs
run: |
m2r README.md
cd docs
make clean html
- name: Publish documentation
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
cd docs
touch _build/html/.nojekyll
cd _build/html; git add -A .; git commit -m "Automated documentation rebuild"; git push official gh-pages