From 3ce3198b62a8620fe578fb3fc5ff4aa0efcd8807 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Mon, 31 Jul 2023 23:52:54 +0200 Subject: [PATCH] fix: publish cloudflare pages native action --- .github/workflows/unlighthouse-report.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unlighthouse-report.yaml b/.github/workflows/unlighthouse-report.yaml index e4d7ddf..c6871bc 100644 --- a/.github/workflows/unlighthouse-report.yaml +++ b/.github/workflows/unlighthouse-report.yaml @@ -59,9 +59,10 @@ jobs: --build-static - name: Upload report to Cloudflare pages - run: | - wrangler init - wrangler pages publish .unlighthouse --site pr${{ github.event.pull_request.number }} + uses: cloudflare/wrangler-action@2.0.0 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + command: pages publish .unlighthouse --branch=pull-${{ github.event.pull_request.number }} - name: Create result content id: create_result_content