diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 73561d2..bffcedd 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -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