-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (48 loc) · 1.74 KB
/
deploy-v2-site.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: sync to quark-ecosystem/quarkd-docs
on:
# 触发条件1
push:
branches:
- main # default branch
# 触发条件2
repository_dispatch:
types: [my-event]
jobs:
publish-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # 检出仓库
- uses: actions/setup-node@v3 # 设置node版本
with:
node-version: 16
- run: npm install
- run: npm run build
- name: Sync
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main # action 应该部署到的分支。
folder: dist # 操作应该部署的文件夹。
repository-name: quark-ecosystem/quarkc-docs
token: ${{ secrets.GIT_ACTION }}
target-folder: /
single-commit: true
clean: true
clean-exclude: |
playground/*
playground/*/**
- uses: BobAnkh/[email protected]
with:
REPO_NAME: 'hellof2e/quark-core-docs'
ACCESS_TOKEN: ${{secrets.GIT_ACTION}}
PATH: 'CHANGELOG.md'
COMMIT_MESSAGE: 'docs(CHANGELOG): update release notes'
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements'
# 部署到当前仓库的 gh-pages 分支
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3 # 使用部署到 GitHub pages 的 action
# with:
# publish_dir: ./dist # 部署打包后的 dist 目录
# github_token: ${{ secrets.GITHUB_TOKEN }} # secret 名
# # user_name: ${{ secrets.MY_USER_NAME }}
# # user_email: ${{ secrets.MY_USER_EMAIL }}
# # commit_message: 自动部署 # 部署时的 git 提交信息,自由填写