Repository navigation
Bump actions/cache from 5.0.3 to 5.0.4 (#31) #79
This file contains hidden or 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 LaTex Document | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| CI: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Download CJK fonts | |
| run: sudo apt update && sudo apt install -y fonts-noto-cjk | |
| - uses: actions/cache@v5.0.4 | |
| name: Cache tectonic and fonts | |
| with: | |
| path: | | |
| ~/.cache/Tectonic | |
| ~/.local/share/fonts | |
| key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} | |
| restore-keys: | | |
| ${{ runner.os }}-tectonic- | |
| - name: Setup tectonic | |
| uses: wtfjoke/setup-tectonic@v4.0.1 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Compile TeX to PDF | |
| run: tectonic main.tex | |
| - name: Tag release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: main.pdf | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |