Update docs-ci.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/docs-ci.yml
vendored
8
.github/workflows/docs-ci.yml
vendored
@@ -33,10 +33,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy preview to GitHub Pages
|
- name: Deploy preview to GitHub Pages
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
run: npx gh-pages -d build -b gh-pages --repo https://github.com/${{ github.repository }} --silent --message "docs preview $GITHUB_SHA" --add
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./build
|
||||||
- name: Comment preview URL
|
- name: Comment preview URL
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
|
|||||||
Reference in New Issue
Block a user