-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (33 loc) · 1.13 KB
/
sphinx-to-gh-pages.yaml
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
# GitHub Actions workflow to build HTML site via Sphinx and deploy it
# to github.io via the gh-pages branch
#
# Primarily based on https://github.com/marketplace/actions/sphinx-docs-to-github-pages
name: Sphinx website to gh-pages
on:
push:
branches:
- main
jobs:
sphinx_website_to_gh-pages:
name: Sphinx website to gh-pages
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Conda environment with Micromamba
uses: mamba-org/setup-micromamba@e820223f89c8720d6c740ca154a7adf32fcd278a
with:
environment-file: envs/environment-gh-pages.yaml
environment-name: numeric-gh-pages
# persist downloads and environment caches for 1 day
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
cache-environment-key: environment-${{ steps.date.outputs.date }}
- name: Sphinx build and deploy
uses: uibcdf/[email protected]
with:
branch: main
dir_docs: website
sphinxopts: ''