From 2291e9a5d10419455b277c23496cfa210965151b Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 16 Mar 2025 11:10:02 -0600 Subject: [PATCH] chore: enhance GitHub Actions workflow with additional steps and permissions - Updated permissions to allow writing actions. - Added a step to list build output for verification. - Included a verification step to confirm artifact upload completion. --- .github/workflows/build-preview.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index fdc312a3..7c8dc789 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -10,7 +10,7 @@ jobs: name: Build Preview Site and Upload Build Artifact permissions: contents: read - actions: read + actions: write pull-requests: write steps: - name: Checkout @@ -34,9 +34,15 @@ jobs: working-directory: app run: pnpm build + - name: List build output + run: ls -la app/dist + - name: Upload build artifact uses: actions/upload-artifact@v4 with: name: preview-build path: app/dist - retention-days: 1 \ No newline at end of file + retention-days: 1 + + - name: Verify artifact upload + run: echo "Artifact upload completed with ID ${{ steps.upload-artifact.step.outputs.artifact-id }}" \ No newline at end of file