odc-geo migration #1010
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |