Skip to content

Commit

Permalink
ci: add cdn upload
Browse files Browse the repository at this point in the history
  • Loading branch information
felixevers committed Aug 19, 2024
1 parent ece8bc9 commit 1dabc14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1dabc14

Please sign in to comment.