From 8f7f09b82638a15e4a611260cc712df412cbb754 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Mon, 31 Jul 2023 23:43:14 +0200 Subject: [PATCH] feat: upload report to cloudflare pages --- .github/workflows/unlighthouse-report.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unlighthouse-report.yaml b/.github/workflows/unlighthouse-report.yaml index 320e17b..e4d7ddf 100644 --- a/.github/workflows/unlighthouse-report.yaml +++ b/.github/workflows/unlighthouse-report.yaml @@ -58,11 +58,10 @@ jobs: --reporter jsonExpanded \ --build-static - - name: Upload report as artifact - uses: actions/upload-artifact@v3 - with: - name: lighthouse-report - path: ./.unlighthouse + - name: Upload report to Cloudflare pages + run: | + wrangler init + wrangler pages publish .unlighthouse --site pr${{ github.event.pull_request.number }} - name: Create result content id: create_result_content @@ -79,7 +78,7 @@ jobs: const score = res => `${getEmoji(res)} ${formatScore(res)}`; - const reportUrl = `https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/artifacts/${{ github.run_id }}/lighthouse-report`; + const reportUrl = ``; const comment = [ `⚡️ Lighthouse report for the changes in this PR:`,