Use cruft and Ouranosinc/cookiecutter-pypackage #68
Workflow file for this run
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: Docs | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
persist-credentials: false | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: xdatasets | |
environment-file: environment.yml | |
mamba-version: "*" | |
python-version: 3.9 | |
auto-activate-base: false | |
- name: Deploy docs | |
shell: bash -l {0} | |
run: | | |
python -m ipykernel install --user --name=xdatasets | |
pip install -e . | |
make -C docs html | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: doc/_build/html # The folder the action should deploy. |