From 64c4406019222692f1555ada61dcf4ca5af56c0a Mon Sep 17 00:00:00 2001 From: Cui Chen Date: Sun, 17 Mar 2024 10:15:07 +0800 Subject: [PATCH] Update render.yml --- .github/workflows/render.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index c7ac6f7..43a7c93 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -9,8 +9,16 @@ jobs: with: cache-dependency-path: requirements.typ # Now Typst is installed and packages will be cached! - - run: typst compile main.typ menu.pdf --font-path fonts + - run: typst compile main.typ output/menu.pdf --font-path fonts - uses: actions/upload-artifact@v4 with: name: menu path: menu.pdf + - 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: output + destination-dir: menu