forked from slaclab/pydm
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 938 Bytes
/
gh-pages.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
# This workflow will publish a new version of the documentation to the gh-pages branch
name: Publish Documentation
on:
push:
branches: [ "master" ]
jobs:
deploy:
if: ${{ github.repository == 'slaclab/pydm' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
mamba-version: "*"
channels: conda-forge
activate-environment: pydm-docs
- name: Install python packages
shell: bash -el {0}
run: |
mamba install pydm $(cat docs-requirements.txt)
- name: Build Docs
shell: bash -l {0}
run: |
pushd docs
make html
popd
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html