diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index b052f1f4..506d70fd 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -12,6 +12,7 @@ jobs: permissions: contents: write pull-requests: write + steps: - name: Checkout PR branch uses: actions/checkout@v4 @@ -34,9 +35,9 @@ jobs: uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./preview + publish_dir: ./preview/pr-${{ github.event.pull_request.number }} publish_branch: gh-pages - destination_dir: pr-preview + destination_dir: pr-preview/pr-${{ github.event.pull_request.number }} keep_files: true - name: Comment PR with preview URL @@ -45,4 +46,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} header: preview-url message: | - 🚀 PR Preview: PR Preview: https://opensource-society.github.io/${{ github.repository }}/pr-preview/pr-${{ github.event.pull_request.number }}/index.html + 🚀 PR Preview: https://opensource-society.github.io/CodeClip/pr-preview/pr-${{ github.event.pull_request.number }}/index.html