From a84851cffb161ecbcb577a8fa9ac177b840a067b Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:29:33 +0200 Subject: [PATCH] Update deploy action (#2029) --- .github/workflows/pr-deploy-and-comment.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-deploy-and-comment.yml b/.github/workflows/pr-deploy-and-comment.yml index 3f85670ebb..ef6d0f4cee 100644 --- a/.github/workflows/pr-deploy-and-comment.yml +++ b/.github/workflows/pr-deploy-and-comment.yml @@ -48,15 +48,15 @@ jobs: path: 'public' destination: 'docs-test.viam.dev/${{ github.event.pull_request.head.sha }}' - - name: Copy generated site to ANOTHER GCS bucket for testing - uses: 'google-github-actions/upload-cloud-storage@v0' - with: - path: 'public' - destination: 'docs-test.viam.dev/${{ github.event.number }}' - - name: Comment on PR with link to rendered site uses: marocchino/sticky-pull-request-comment@v2.2.0 with: recreate: true message: 'You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/${{ github.event.pull_request.head.sha }}/public' GITHUB_TOKEN: ${{ secrets.PR_TOKEN }} + + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v0' + + - name: 'Use gcloud CLI' + run: 'gsutil -m rsync -R -d public gs://docs-test.viam.dev/${{ github.event.number }}'