-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 1.12 KB
/
deploy_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
name: "GitHub Pages documentation"
on:
push:
branches: [ master ]
permissions:
contents: write
jobs:
docs:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
name: Build (and deploy) documentation
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
# channels: conda-forge, nodefaults
# channel-priority: strict
environment-file: .config/environment.yml
activate-environment: ra2ce_env
- name: Install dependencies
run: poetry install --without dev,test
- name: Build docs
run: |
cd docs
poetry run make html
- name: Upload to GitHub Pages
if: ${{ github.event_name != 'pull_request'}}
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
force_orphan: true