-
Notifications
You must be signed in to change notification settings - Fork 23
38 lines (33 loc) · 997 Bytes
/
deploy-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 build --filter @gbeata/admin-docs
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: [email protected]:anyone-yuren/gbeata-admin-docs.git
BRANCH: gh-pages
FOLDER: docs-dist
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}