Skip to content

Commit

Permalink
Set workflow with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
facusapienza21 authored Sep 9, 2023
1 parent ab8ede9 commit ab576bf
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,35 @@ on:
jobs:
deploy-book:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v2

# Install dependencies
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install jupyter-book matplotlib numpy
# - name: Set up Python 3.9
# uses: actions/setup-python@v1
# with:
# python-version: 3.9
# - name: Install dependencies
# run: |
# pip install jupyter-book matplotlib numpy
- name: Create environment with micromamba 🐍🖤
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.3.1-0'
environment-file: ./environment.yml
environment-name: paleosampling
init-shell: bash
cache-environment: true
# Build the book
- name: Build the book
- name: Build the book 📘
run: |
jupyter-book build .
env:
PYTHON : /home/runner/micromamba/envs/paleosampling/bin/python
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit ab576bf

Please sign in to comment.