From 420290a9ee44de3a1f1e87e057c55b4bb6f1dd31 Mon Sep 17 00:00:00 2001 From: Irfan Maulana Date: Mon, 25 Nov 2024 06:05:34 +0700 Subject: [PATCH] CI: Try to upload report to gh-pages -- attempt 1 (#57) * CI: Try to upload report to gh-pages -- attempt 1 * CHORE: rename step name --- .github/workflows/e2e.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index fbc8796..e65c9ef 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -9,9 +9,13 @@ jobs: smoke-test: runs-on: ubuntu-latest timeout-minutes: 60 + permissions: + pages: write + id-token: write steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -31,9 +35,15 @@ jobs: - name: Smoke test run: pnpm run test:e2e - - uses: actions/upload-artifact@v4 - if: always() + - name: Upload artifact + uses: actions/upload-artifact@v4 with: name: playwright-report path: playwright-report/ - retention-days: 30 \ No newline at end of file + retention-days: 30 + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + with: + - artifact_name: 'playwright-report' \ No newline at end of file