docs: opt homepage btn text #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 Site And Sync to Gitee | |
on: | |
push: | |
branches: [dev, main] | |
jobs: | |
deploy-site-sync-gitee: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile && node scripts/bootstrap.mjs | |
- name: Build site | |
run: pnpm --dir ./packages/varlet-ui build | |
- name: Deploy site | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-page | |
folder: packages/varlet-ui/site | |
- 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.git |