update instructions for PhD qualifying exam #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy handbook | |
on: | |
push: | |
branches: main | |
tags: | |
- v* | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Working directory check | |
run: | | |
pwd | |
ls | |
- name: Install Pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install XeLaTeX | |
run: sudo apt-get update && sudo apt-get install -y texlive-xetex | |
- name: Download lua-filter | |
run: wget https://raw.githubusercontent.com/pandoc/lua-filters/master/include-files/include-files.lua | |
- name: Verify dependencies | |
run: | | |
pandoc --version | |
xetex --version | |
ls include-files.lua | |
- name: Build | |
run: >- | |
pandoc | |
--lua-filter=include-files.lua | |
--metadata-file=./config/default.yaml | |
--pdf-engine=xelatex | |
--number-sections | |
handbook.md -o graduate-handbook.pdf | |
- name: Verify build | |
run: ls graduate-handbook.pdf | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
graduate-handbook.pdf |