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