Merge pull request #585 from tedaimengtech/main #224
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release-docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v6 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Enable corepack and pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@10.29.2 --activate | |
| - name: Install and Build | |
| run: | | |
| pnpm install | |
| pnpm docs:build | |
| - name: Deploy 馃殌 | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: docs | |
| folder: dist-docs |