move cache step to bottom
All checks were successful
Publish PDF / publish (push) Successful in 26s

This commit is contained in:
Joe bellus 2025-03-10 19:19:19 -04:00
parent 76648fb99e
commit 706a5d8b7a

View File

@ -1,19 +1,8 @@
# This file represents 1 workflow. A workflow has multiple jobs. A job has multiple tasks.
name: Publish PDF
# This workflow runs every push
on: push
# If you'd like it only to run on certain branches:
# on:
# push:
# branches: [main, dev]
# pull_request:
# branches: [staging, prod]
# Jobs are run in parallel
jobs:
# This is our one and only job
publish:
runs-on: ubuntu-22.04
steps:
@ -26,13 +15,6 @@ jobs:
run: |
apt -y install curl
curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh
- uses: actions/cache@v3
name: Tectonic cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-
- name: Compile latex
run: ./tectonic main.tex
- name: Rename PDF
@ -45,4 +27,11 @@ jobs:
token: ${{ secrets.token }}
files: |-
${{ steps.extract_branch.outputs.branch }}.pdf
- uses: actions/cache@v3
name: Tectonic cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-