Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

ci: updates (#1)

ci: updates (#1) #12

on:
push:
branches:
- main
- master
workflow_dispatch:
name: Render and Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
# For the push to `gh-pages` branch.
contents: write
pages: write
env:
JULIA_NUM_THREADS: "auto"
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: false # we don't need latex
# uncomment below and fill to pin a version
# version: SPECIFIC-QUARTO-VERSION-HERE
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
cache: 'pip'
- name: Install Jupyter
run: pip install jupyter jupyter-cache
- name: Install Python project
run: pip install -r requirements.txt
- run: echo "PYTHON=$(which python)" >> $GITHUB_ENV
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: "1"
- name: Cache Julia
uses: julia-actions/cache@v1
- name: Instantiate Julia project
run: julia --color=yes --project -e 'using Pkg; Pkg.instantiate()'
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: index.qmd
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions