-
Notifications
You must be signed in to change notification settings - Fork 175
46 lines (39 loc) · 1020 Bytes
/
build-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
45
46
name: build-docs
on:
pull_request:
push:
branches:
- develop
- dra/docs-updates
env:
DKR: opendatacube/datacube-tests:latest
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Pull Docker
run: |
docker pull ${DKR}
- name: Build Docs
run: |
cat <<EOF | docker run --rm -i \
-v $(pwd):/code \
-e SKIP_DB=yes \
${DKR} bash -
sudo apt-get update && sudo apt-get install -y plantuml make pandoc
cd docs
pip install -r requirements.txt
make html
EOF
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.0
with:
production-branch: 'master'
publish-dir: 'docs/_build/html'
deploy-message: "Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}