This is an automated email from the ASF dual-hosted git repository. tison pushed a commit to branch sitebuild in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git
commit 6d9d6ad29e4e3eb868711b9b3f491999d1783116 Author: tison <[email protected]> AuthorDate: Thu Oct 19 17:42:40 2023 +0800 ci: enable sitebuild Signed-off-by: tison <[email protected]> --- .github/workflows/deploy.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e2f8f03..c95deff 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + pull_request: jobs: build-deploy: @@ -44,8 +45,9 @@ jobs: - name: build run: pnpm run build - - name: Deploy 🚀 - uses: JamesIves/[email protected] + - uses: peaceiris/actions-gh-pages@v3 + if: github.event_name != 'pull_request' with: - branch: dist-pages - folder: build + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build + publish_branch: dist-pages
