-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
# 当 quark-doc-home 有新版本发布,会自动触发当前工程打包,从而实现自动更新官网对应内容更新 | ||
name: sync to quark-ecosystem/quarkd-docs | ||
# # 当 quark-doc-home 有新版本发布,会自动触发当前工程打包,从而实现自动更新官网对应内容更新 | ||
# name: sync to quark-ecosystem/quarkd-docs | ||
|
||
on: | ||
repository_dispatch: | ||
types: [my-event] # 触发条件 | ||
# on: | ||
# repository_dispatch: | ||
# types: [my-event] # 触发条件 | ||
|
||
jobs: | ||
copy: | ||
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 | ||
# jobs: | ||
# copy: | ||
# 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 # 操作应该部署的文件夹。 | ||
clean: true | ||
repository-name: quark-ecosystem/quarkd-docs | ||
token: ${{ secrets.GIT_ACTION }} | ||
target-folder: vue/ | ||
# - name: Sync | ||
# uses: JamesIves/github-pages-deploy-action@v4 | ||
# with: | ||
# branch: main # action 应该部署到的分支。 | ||
# folder: dist # 操作应该部署的文件夹。 | ||
# clean: true | ||
# repository-name: quark-ecosystem/quarkd-docs | ||
# token: ${{ secrets.GIT_ACTION }} | ||
# target-folder: vue/ |
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