#142 4.7-6 #160
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 PDF | |
on: [push] | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup TeXLive and compile document | |
uses: xu-cheng/texlive-action/full@v1 | |
with: | |
run: | | |
apk add file sudo coreutils | |
chmod +x scripts/install_fonts.sh | |
scripts/install_fonts.sh | |
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode clrs4e-solutions.tex | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: clrs4e-solutions.pdf | |
prerelease: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |