diff --git a/.github/workflows/website-preview-deploy.yaml b/.github/workflows/website-preview-deploy.yaml index ef31570..ba058e5 100644 --- a/.github/workflows/website-preview-deploy.yaml +++ b/.github/workflows/website-preview-deploy.yaml @@ -31,7 +31,7 @@ jobs: with: node-version: 18 - name: Set environment variable - run: echo "BASE_URL=/sparo/preview-${{ github.head_ref }}" >> $GITHUB_ENV + run: echo "BASE_URL=/pr/${{ github.event.number }}/sparo/" >> $GITHUB_ENV - name: Rush Install(Website) run: node common/scripts/install-run-rush.js install --to website - name: Rush build(Website) @@ -44,9 +44,9 @@ jobs: with: github_token: ${{ secrets.BOT_ACCESS_TOKEN }} publish_dir: ./apps/website/build - publish_branch: preview-${{ github.head_ref }} - - name: Comment on the pull request with preview URL - if: github.event_name == 'pull_request' - uses: peter-evans/commit-comment@v2 - with: - body: 'Preview URL: https://tiktok.github.io/sparo/preview-${{ github.head_ref }}/' + destination_dir: pr/${{ github.event.number }}/sparo + # - name: Comment on the pull request with preview URL + # if: github.event_name == 'pull_request' + # uses: peter-evans/commit-comment@v2 + # with: + # body: 'Preview URL: https://tiktok.github.io/sparo/preview-${{ github.head_ref }}/'