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