From b3fb9fb224d348b90f4d11fa2fb2fd1375d353da Mon Sep 17 00:00:00 2001 From: Scott Scoble Date: Fri, 1 May 2026 23:00:21 -0700 Subject: [PATCH] ci: fix runner PATH, make typst optional, add cleanup step --- .forgejo/workflows/deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 10eb467..1ae8c0a 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -30,10 +30,11 @@ jobs: npm ci npm run build - - name: Build speaker profile PDF + - name: Build speaker profile PDF (optional) + continue-on-error: true run: | cd "${{ env.WORKDIR }}" - typst compile one-sheet.typ ./Scott-Scoble-Human-Cultivation-Expert-Speaker-Profile.pdf + typst compile one-sheet.typ ./dist/downloads/Scott-Scoble-Human-Cultivation-Expert-Speaker-Profile.pdf - name: Configure rclone run: | @@ -50,4 +51,8 @@ jobs: - name: Deploy to Storj run: | rclone sync "${{ env.WORKDIR }}/dist/" storj:${{ secrets.STORJ_BUCKET }}/ --progress - rclone sync "${{ env.WORKDIR }}/one-sheet/" storj:${{ secrets.STORJ_BUCKET }}/downloads/ --progress 2>/dev/null || true + + - name: Cleanup + if: always() + run: | + rm -rf "${{ env.WORKDIR }}" \ No newline at end of file