v3.16.1 #111
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: Deploy Playground | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy-playground: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| run: npm i -g --force corepack && corepack enable | |
| - name: Set node version to 22 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22.x' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile && node scripts/bootstrap.mjs | |
| - name: Build playground | |
| run: pnpm build:play | |
| - name: Deploy site | |
| uses: JamesIves/github-pages-deploy-action@v4.4.3 | |
| with: | |
| branch: gh-page | |
| folder: packages/varlet-ui-playground/site | |
| single-commit: true | |
| clean: true | |
| target-folder: playground |