chore: wip v2 deploy workflow #1
This file contains 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 And Sync to Gitee V2 | |
on: | |
push: | |
branches: ['v2.x'] | |
jobs: | |
deploy-playground-sync-gitee-v2: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
run: corepack enable | |
- name: Set node version to 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
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/[email protected] | |
with: | |
branch: playground-gh-page | |
folder: packages/varlet-ui-playground/site | |
single-commit: true | |
clean: true | |
target-folder: v2 | |
- name: Sync to Gitee | |
uses: wearerequired/git-mirror-action@master | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} | |
with: | |
source-repo: [email protected]:varletjs/varlet.git | |
destination-repo: [email protected]:varlet/varlet-ui-playground.git |