Skip to content

Commit

Permalink
Migrate to actions/setup-python (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
g4brielvs committed Mar 9, 2023
1 parent fcd1763 commit 27e6826
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
environment-file: environment.yml
auto-activate-base: false
cache: "pip"
- name: Dependencies
shell: bash -l {0}
run: |
conda install pip
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
- name: Build
shell: bash -l {0}
- name: Build Jupyter Book
run: |
jupyter-book build . --config docs/_config.yml --toc docs/_toc.yml
- name: Deploy
Expand Down

0 comments on commit 27e6826

Please sign in to comment.