diff --git a/.github/workflows/ci-preview-deploy.yml b/.github/workflows/ci-preview-deploy.yml index 5ae075dc6ad8..bb8222e7b5b8 100644 --- a/.github/workflows/ci-preview-deploy.yml +++ b/.github/workflows/ci-preview-deploy.yml @@ -1,6 +1,6 @@ # .github/workflows/ci-preview-deploy.yml -name: Deploy PR previews -concurrency: preview-${{ github.ref }} +name: Deploy PR +concurrency: preview-deploy-${{ github.ref }} on: push: branches: @@ -30,9 +30,9 @@ jobs: mkdir .preview mv ${{ github.ref_name }} .preview - - uses: crazy-max/ghaction-github-pages@v2 + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 with: - build_dir: .preview - target_branch: gh-pages - commit_message: 'Deploy to Github Pages [skip ci]' - jekyll: false + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: .preview + keep_files: true diff --git a/.github/workflows/ci-preview.yml b/.github/workflows/ci-preview.yml index 01d172e1f198..17f247ddad94 100644 --- a/.github/workflows/ci-preview.yml +++ b/.github/workflows/ci-preview.yml @@ -8,6 +8,7 @@ on: - reopened - synchronize - closed + jobs: deploy-preview: runs-on: ubuntu-latest @@ -26,6 +27,7 @@ jobs: install: true - name: Build + if: github.event.action != 'closed' run: | yarn turbo run build-preview yarn turbo run .:build-preview-move