From 1dabc14fd70a0e44f982b692ca1b6fadfe287da3 Mon Sep 17 00:00:00 2001 From: use-to <13922835+use-to@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:49:30 +0200 Subject: [PATCH] ci: add cdn upload --- .github/workflows/latex.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/latex.yml b/.github/workflows/latex.yml index a1079cc..ff00116 100644 --- a/.github/workflows/latex.yml +++ b/.github/workflows/latex.yml @@ -37,3 +37,13 @@ jobs: name: pdfs path: ./*.pdf + - name: Upload to cdn + uses: ryand56/r2-upload-action@latest + with: + r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} + r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} + r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} + r2-bucket: ${{ secrets.R2_BUCKET }} + source-dir: ./ + destination_dir: pdfs/${{ github.sha }} + delete_existing: true