Export reference manual to GitHub pages. #22
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: Build & Deploy EasyCrypt Documentation | |
on: [push,pull_request] | |
jobs: | |
build_refman: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git Repository | |
uses: actions/checkout@v4 | |
- name: Compile Reference Manual | |
uses: xu-cheng/latex-action@v3 | |
with: | |
working_directory: refman | |
latexmk_shell_escape: true | |
args: "-pdf -bibtex -file-line-error -halt-on-error -interaction=nonstopmode" | |
root_file: refman.tex | |
env: | |
TEXINPUTS: ".:../common/:" | |
- name: Copy Reference Manual | |
run: | | |
mkdir _pages | |
cp refman/refman.pdf _pages | |
- name: Setup Pages | |
if: github.ref == 'refs/heads/main' | |
uses: actions/configure-pages@v3 | |
- name: Upload Artifact | |
if: github.ref == 'refs/heads/main' | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "./_pages" |