Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Build and Deploy docs

on: ["push", "pull_request"]
on:
pull_request:

push:
tags:
- "v*"

jobs:
run:
Expand All @@ -9,14 +14,14 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v13
with:
environment-file: false

- name: Create environment
shell: bash -l {0}
run: |
micromamba create --name TEST python=3 python-build numpy --file requirements-dev.txt --channel conda-forge
micromamba create --name TEST python=3 numpy --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
pip install -e . --no-deps --force-reinstall
conda info --all
Expand All @@ -32,8 +37,8 @@ jobs:
popd

- name: GitHub Pages action
if: ${{ github.event_name == 'release' }}
uses: peaceiris/actions-gh-pages@v3.6.1
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html