forked from DanNixon/hebi
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (39 loc) · 1.12 KB
/
api-docs.yml
File metadata and controls
39 lines (39 loc) · 1.12 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
name: Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
ref: testing-github-pages
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: latest
activate-environment: savu_lite
python-version: 3.7
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Installing savu-lite from savu-dep channel
shell: bash -l {0}
run: |
conda activate /usr/share/miniconda3/envs/savu_lite
conda install --yes savu-lite -c conda-forge -c savu-dep -c ccpi -c astra-toolbox/label/dev
- name: Build and Commit
uses: yousefmoazzam/pages@master
with:
documentation_path: api/docs/source/
conda_env: savu_lite
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages