Skip to content

Update environment.yml #17

Update environment.yml

Update environment.yml #17

Workflow file for this run

name: "Quarto Render and Publish to Pages"
on:
push:
branches: [ main, quarto/**]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: true
- name: "Install Conda environment"
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
# create-args: >- # beware the >- instead of |, we don't split on newlines but on spaces
# python=3.10
cache-environment: true
- name: "Render"
run: "quarto render"
- name: "Upload artifact"
uses: "actions/upload-pages-artifact@v1"
with:
path: "./_site"
# Deploy to GH Pages
deploy:
environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"
runs-on: "ubuntu-latest"
needs: "build"
steps:
- name: "Deploy to GitHub Pages"
id: "deployment"
uses: "actions/deploy-pages@v1"