forked from conda/conda-build
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 868 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
name: CI docs
on:
# NOTE: github.event context is push payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
push:
branches:
- master
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
# NOTE: github.event context is pull_request payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
pull_request:
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
jobs:
docs:
if: '!github.event.repository.fork'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup
run : |
make env-docs
- name: Build the docs
run : |
cd docs
conda run --name conda-build-docs make html