Skip to content

Commit

Permalink
docs: add a github action deployment mechanism (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Oct 11, 2024
2 parents e8c4441 + 8b7aff8 commit d0ba6fa
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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]
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

0 comments on commit d0ba6fa

Please sign in to comment.