Skip to content

repo maintenance

repo maintenance #6

Workflow file for this run

name: Release documentation
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 install -y texlive-xetex
- name: Download and install fonts
run: |
wget -O Junicode.zip https://github.com/psb1558/Junicode-font/releases/download/v2.209/Junicode_2.209.zip
unzip Junicode.zip
mv Junicode/ /usr/share/fonts
fc-cache -fv
- name: Verify dependencies
run: |
pandoc --version
xetex --version
- name: Build
run: |
pushd ./docs/
echo "Building the PDF..."
pandoc --metadata-file ./config/default.yaml --citeproc --number-sections --toc --pdf-engine xelatex documentation.md -o ../documentation.pdf
popd
- name: Verify build
run: ls documentation.pdf
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
documentation.pdf