This is an automated email from the ASF dual-hosted git repository. tison pushed a commit to branch ci-deploy in repository https://gitbox.apache.org/repos/asf/incubator-fury-site.git
commit b56acb96b919a7653ecda117b1f2e493fc59f2a4 Author: tison <[email protected]> AuthorDate: Mon Dec 25 21:33:43 2023 +0800 ci: deploy Signed-off-by: tison <[email protected]> --- .github/workflows/deploy.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9225d97..2118504 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,29 +4,22 @@ on: push: branches: - main + pull_request: jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v1 - - - name: Use Node.js - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18.x - - # build - - name: Build Project - run: | - npm install - npm run build - - # save to deploy branch - - name: Deploy to Github - uses: JamesIves/[email protected] + - run: npm install + - run: npm run build + - uses: peaceiris/actions-gh-pages@v3 + if: github.event_name != 'pull_request' with: - branch: deploy - folder: dist + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist + publish_branch: deploy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
