Skip to content

Commit

Permalink
update pdoc deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Mather committed Mar 30, 2023
1 parent d5bf1d8 commit b034abe
Showing 1 changed file with 14 additions and 36 deletions.
50 changes: 14 additions & 36 deletions .github/workflows/build_deploy_pdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,26 @@ on:
branches:
- master

workflow_run:
workflows: ["Conda Deployment"]
branches: [master]
types:
- completed

workflow_dispatch:

jobs:
deploy:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 1
with:
path: |
~/conda_pkgs_dir
~/.cache/pip
key: macos-pdoc-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/workflows/resources/conda_api_docs_environment.yml') }}

- name: Miniconda + Cache
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
environment-file: .github/workflows/resources/conda_api_docs_environment.yml
activate-environment: conda-build-docs
python-version: 3.8
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!

python-version: "3.10"

- name: Install stripy from most recent upload
shell: bash -l {0}
- name: Install dependencies
run: |
VERSION=`python setup.py --version`
conda install -c geo-down-under stripy==$VERSION # will explicity request this version and fail otherwise
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install numpy
pip install scipy
pip install Cython
pip install pdoc3
- name: Install latest stripy
run: |
pip install .
- name: Build docs with pdoc
shell: bash -l {0}
Expand All @@ -69,5 +48,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_dir: docs/
publish_dir: docs/api/stripy

publish_dir: docs/api/stripy

0 comments on commit b034abe

Please sign in to comment.