append tiff (not really implemented) #1052
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: Documentation | |
on: push | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
sudo apt install pandoc | |
pip install wheel | |
- name: Install package | |
run: pip install -e . | |
- name: Activate Extensions, install additional dependencies | |
run: | | |
pip install metacatalog-corr metacatalog-search | |
pip install jinja2 lxml | |
python -c "from metacatalog import ext; ext.activate_extension('io', 'metacatalog.ext.io', 'IOExtension')" | |
python -c "from metacatalog import ext; ext.activate_extension('standards_export', 'metacatalog.ext.standards_export', 'StandardsExportExtension')" | |
python -c "from metacatalog import ext; ext.activate_extension('search', 'metacatalog_search.extension', 'SearchExtension')" | |
python -c "from metacatalog import ext; ext.activate_extension('corr', 'metacatalog_corr.extension', 'CorrExtension')" | |
- name: Build Sphinx | |
run: | | |
pip install "sphinx<6" pandoc pydata_sphinx_theme nbsphinx sphinx-gallery | |
cd docs | |
make html | |
cd build/html | |
touch .nojekyll | |
- name: Deploy | |
if: ${{ success() }} | |
uses: crazy-max/ghaction-github-pages@v1 | |
with: | |
target_branch: gh-pages | |
build_dir: docs/build/html | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |