From c514d9090228849b5e188414e3336125f1c969b9 Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Thu, 28 Sep 2023 14:16:00 -0400 Subject: [PATCH] chore: use artifact --- .github/workflows/github-pages-pr-preview.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-pages-pr-preview.yaml b/.github/workflows/github-pages-pr-preview.yaml index 5a36950377..4dbed7cc62 100644 --- a/.github/workflows/github-pages-pr-preview.yaml +++ b/.github/workflows/github-pages-pr-preview.yaml @@ -64,6 +64,13 @@ jobs: # umbrella-dir: pr-preview # token: ${{ secrets.KONGPONENTS_BOT_PAT }} + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + name: sandbox-assets + # Upload sandbox/dist directory + path: ./sandbox/dist + - name: Generate target folder id: target-folder run: | @@ -76,7 +83,7 @@ jobs: with: # TODO: Update branch name to beta when needed branch: ${{ github.head_ref || github.ref_name }} - folder: ./sandbox/dist # The folder the action should deploy. + folder: sandbox-assets # The artifact name target-folder: ${{ steps.target-folder.outputs.target-folder }} clean-exclude: pr-preview/ # Do not remove other PR preview builds force: false