From 89ce535f184ef087b527ea49d2f3c9e5d7d6a3a5 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 23 Oct 2024 17:20:21 +0800 Subject: [PATCH] ci: updated workflow --- .github/workflows/docker-crawlab.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-crawlab.yml b/.github/workflows/docker-crawlab.yml index 9b765d5a..df506d95 100644 --- a/.github/workflows/docker-crawlab.yml +++ b/.github/workflows/docker-crawlab.yml @@ -250,14 +250,22 @@ jobs: working-directory: tests/e2e run: pnpm run test - - name: Upload Playwright report - id: upload_playwright_report - uses: actions/upload-artifact@v3 + # - name: Upload Playwright report + # id: upload_playwright_report + # uses: actions/upload-artifact@v3 + # if: ${{ always() && steps.install_playwright.outcome == 'success' }} + # with: + # name: playwright-report + # path: tests/e2e/playwright-report/ + # retention-days: 1 + + - name: Deploy to GitHub Pages if: ${{ always() && steps.install_playwright.outcome == 'success' }} + uses: peaceiris/actions-gh-pages@v3 with: - name: playwright-report - path: tests/e2e/playwright-report/ - retention-days: 1 + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: tests/e2e/playwright-report + destination_dir: playwright-report/${{ needs.setup.outputs.version }} push_images: if: ${{ always() && needs.test_crawlab.result == 'success' }}