Skip to content

ci: bump actions/cache from 2.1.7 to 3.3.2 #3

ci: bump actions/cache from 2.1.7 to 3.3.2

ci: bump actions/cache from 2.1.7 to 3.3.2 #3

Workflow file for this run

name: 'Build LaTex Document'
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3.3.2
name: Cache tectonic and fonts
with:
path: |
~/.cache/Tectonic
~/.local/share/fonts
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-
- name: Download CJK fonts
run: |
mkdir -p ~/.local/share/fonts
wget -nc -P ~/.local/share/fonts -i fonts.txt
fc-cache -fv
- uses: wtfjoke/setup-tectonic@v1.1.9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Compile TeX to PDF
run: tectonic main.tex
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: main.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}