Skip to content

Merge pull request #9 from lightclient/add-pr-preview #3

Merge pull request #9 from lightclient/add-pr-preview

Merge pull request #9 from lightclient/add-pr-preview #3

Workflow file for this run

name: Build and deploy static site
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make pandoc texlive texlive-xetex texlive-fonts-recommended texlive-plain-generic build-essential curl libffi-dev libffi8ubuntu1 libgmp-dev libgmp10 libncurses-dev
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
cabal install pandoc-sidenote
- name: Run Makefile
run: make
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: gh-pages