diff --git a/.github/workflows/build_pr_preview.yml b/.github/workflows/build_pr_preview.yml index 5299e18..5960860 100644 --- a/.github/workflows/build_pr_preview.yml +++ b/.github/workflows/build_pr_preview.yml @@ -33,14 +33,12 @@ jobs: run: | git config --global user.name "github-actions" git config --global user.email "actions@github.com" - git clone --branch gh-pages https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git preview mkdir -p preview/pull/${{ github.event.number }} cp -r _site/* preview/pull/${{ github.event.number }}/ cd preview git add . git commit -m "Deploy PR #${{ github.event.number }} preview" - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git git push origin gh-pages