From 0f789c472e23a3a5a1199dafa4c552a71dda0f15 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Wed, 4 Feb 2026 13:33:17 -0500 Subject: [PATCH] Use upload-artifact v4 on GitHub, v3 otherwise --- .github/workflows/build.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5dcef42..8edb6fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,13 +47,29 @@ jobs: pdflatex -output-directory=build -interaction=nonstopmode proposal.tex cp build/proposal.pdf output/proposal.pdf - - name: Upload Thesis PDF + - name: Upload Thesis PDF (GitHub) + if: github.server_url == 'https://github.com' + uses: actions/upload-artifact@v4 + with: + name: thesis-pdf + path: thesis/out/thesis.pdf + + - name: Upload Thesis PDF (Gitea) + if: github.server_url != 'https://github.com' uses: actions/upload-artifact@v3 with: name: thesis-pdf path: thesis/out/thesis.pdf - - name: Upload Proposal PDF + - name: Upload Proposal PDF (GitHub) + if: github.server_url == 'https://github.com' + uses: actions/upload-artifact@v4 + with: + name: proposal-pdf + path: proposal/output/proposal.pdf + + - name: Upload Proposal PDF (Gitea) + if: github.server_url != 'https://github.com' uses: actions/upload-artifact@v3 with: name: proposal-pdf