-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (38 loc) · 1008 Bytes
/
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
48
name: docs
on:
push:
branches:
- "master"
jobs:
gh-pages:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
activate-environment: moranpycess-dev
environment-file: environment.yml
auto-activate-base: false
- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Install
shell: bash -l {0}
run: make install
- name: BuildTheDocs
shell: bash -l {0}
run: make docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: 'docs'
destination_dir: 'docs'
keep_files: true