fix(docs): 🐛 update docs base url #3
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 to GitHub Pages | |
on: | |
push: | |
branches: | |
- release-admin | |
jobs: | |
deploy: | |
name: Deploy to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Chekcout 🛎️ # 步骤名 | |
uses: actions/checkout@master # 使用插件 => https://github.com/actions/checkout | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install dependencies | |
shell: bash | |
run: | | |
pnpm config set registry https://registry.npmmirror.com | |
pnpm install | |
- name: Build 🔧 | |
run: pnpm docs:build | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: [email protected]:anyone-yuren/gbeata-component-docs.git | |
BRANCH: gh-pages | |
FOLDER: gbeata-dist | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} |