From 706a5d8b7a24d21feae9c135f590a93049a031f9 Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 19:19:19 -0400 Subject: [PATCH] move cache step to bottom --- .github/workflows/publish.yaml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8482bb5..f3391cb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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-