| 1 |
--- |
| 2 |
name: Build Docs |
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
# Sequence of patterns matched against refs/tags |
| 7 |
tags: |
| 8 |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 |
| 9 |
workflow_dispatch: |
| 10 |
inputs: |
| 11 |
version: |
| 12 |
description: Manual Doc Build Reason |
| 13 |
default: test |
| 14 |
required: false |
| 15 |
|
| 16 |
jobs: |
| 17 |
docs: |
| 18 |
name: Build and Push Docs (${{ matrix.os }}-${{ matrix.environment-file }}) |
| 19 |
runs-on: ${{ matrix.os }} |
| 20 |
continue-on-error: ${{ matrix.experimental }} |
| 21 |
timeout-minutes: 90 |
| 22 |
strategy: |
| 23 |
matrix: |
| 24 |
os: ['ubuntu-latest'] |
| 25 |
environment-file: [ci/314-latest.yaml] |
| 26 |
experimental: [false] |
| 27 |
defaults: |
| 28 |
run: |
| 29 |
shell: bash -l {0} |
| 30 |
|
| 31 |
steps: |
| 32 |
- name: Checkout repo |
| 33 |
uses: actions/checkout@v6 |
| 34 |
with: |
| 35 |
fetch-depth: 0 |
| 36 |
|
| 37 |
- name: Setup micromamba |
| 38 |
uses: mamba-org/setup-micromamba@v2 |
| 39 |
with: |
| 40 |
environment-file: ${{ matrix.environment-file }} |
| 41 |
micromamba-version: 'latest' |
| 42 |
|
| 43 |
- name: Install esda |
| 44 |
run: pip install . |
| 45 |
|
| 46 |
- name: Make Docs |
| 47 |
run: cd docs; make html |
| 48 |
|
| 49 |
- name: Publish to Github Pages |
| 50 |
uses: peaceiris/actions-gh-pages@v4 |
| 51 |
with: |
| 52 |
github_token: ${{ secrets.GITHUB_TOKEN }} |
| 53 |
publish_dir: docs/_build/html/ |
| 54 |
keep_files: false |