Skip to content

Commit 2864a6a

Browse files
authored
Merge pull request #110 from ocefpaf/docs
let's see if we can revive the docs
2 parents 8c64e39 + 2dcc523 commit 2864a6a

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Build and Deploy docs
22

3-
on: ["push", "pull_request"]
3+
on:
4+
pull_request:
5+
6+
push:
7+
tags:
8+
- "v*"
49

510
jobs:
611
run:
@@ -9,14 +14,14 @@ jobs:
914
- uses: actions/checkout@v3
1015

1116
- name: Setup Micromamba
12-
uses: mamba-org/provision-with-micromamba@main
17+
uses: mamba-org/provision-with-micromamba@v13
1318
with:
1419
environment-file: false
1520

1621
- name: Create environment
1722
shell: bash -l {0}
1823
run: |
19-
micromamba create --name TEST python=3 python-build numpy --file requirements-dev.txt --channel conda-forge
24+
micromamba create --name TEST python=3 numpy --file requirements-dev.txt --channel conda-forge
2025
micromamba activate TEST
2126
pip install -e . --no-deps --force-reinstall
2227
conda info --all
@@ -32,8 +37,8 @@ jobs:
3237
popd
3338
3439
- name: GitHub Pages action
35-
if: ${{ github.event_name == 'release' }}
36-
uses: peaceiris/actions-gh-pages@v3.6.1
40+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
41+
uses: peaceiris/actions-gh-pages@v3
3742
with:
3843
github_token: ${{ secrets.GITHUB_TOKEN }}
3944
publish_dir: docs/_build/html

0 commit comments

Comments
 (0)