From 6683967c8dc8a81c527ae2d81e2109d1c4981c12 Mon Sep 17 00:00:00 2001 From: Riley Park Date: Sun, 4 Aug 2024 07:09:47 -0700 Subject: [PATCH] Update deploy-preview.yaml --- .github/workflows/deploy-preview.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-preview.yaml b/.github/workflows/deploy-preview.yaml index 28649fcb..e760b1b9 100644 --- a/.github/workflows/deploy-preview.yaml +++ b/.github/workflows/deploy-preview.yaml @@ -1,4 +1,5 @@ -name: "Upload Preview Deployment" +name: "Publish Preview Deployment" + on: workflow_run: workflows: ["Build Preview Deployment"] @@ -7,8 +8,8 @@ on: permissions: actions: read - deployments: write contents: read + deployments: write pull-requests: write jobs: @@ -17,7 +18,6 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} name: "Deploy Preview to Cloudflare Pages" steps: - # Downloads the build directory from the previous workflow - name: "Download build artifact" uses: "actions/download-artifact@v4" id: "preview-build-artifact" @@ -26,7 +26,6 @@ jobs: path: "build" github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id }} - - name: "Deploy to Cloudflare Pages" uses: "AdrianGonz97/refined-cf-pages-action@v1" with: