Skip to content

docs: add a github action deployment mechanism (#327) #2

docs: add a github action deployment mechanism (#327)

docs: add a github action deployment mechanism (#327) #2

name: Documentation
on:
push:
branches:
- main
workflow_dispatch:
env:
EARTHENGINE_SERVICE_ACCOUNT: ${{ secrets.EARTHENGINE_SERVICE_ACCOUNT }}
EARTHENGINE_PROJECT: ${{ secrets.EARTHENGINE_PROJECT }}
jobs:
docs:
needs: [lint]

Check failure on line 15 in .github/workflows/documentation.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/documentation.yaml

Invalid workflow file

You have an error in your yaml syntax on line 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: 12rambau/setup-pandoc@test
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install nox
run: pip install nox
- name: build static docs
run: nox -s docs
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4