-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.31 KB
/
docs-build-and-deploy.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
name: Docs build and deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
defaults:
# must specify the shell so that conda init updates bashrc see: https://github.com/conda-incubator/setup-miniconda#IMPORTANT
run:
shell: bash -el {0}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install Pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install miniconda and create environment
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: mutyper
channels: bioconda,conda-forge,defaults
python-version: 3.9
auto-activate-base: false
auto-update-conda: true
- name: Install
run: |
conda install bcftools tabix pip gcc_linux-64
make install
- name: Build 🔧
run: |
make docs
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: docs # The branch the action should deploy to.
folder: docs/_build/html # The folder the action should deploy.