Skip to content

Commit

Permalink
update: website v2
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxsf committed Mar 26, 2024
1 parent 566a0f0 commit 6ad9f27
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
name: sync to quark-ecosystem/quarkd-docs

on:
# 触发条件1
push:
branches:
- main # default branch
paths:
- ".github/workflows/**"
- "**"

# 触发条件2
repository_dispatch:
types: [my-event]

jobs:
copy:
publish-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # 检出仓库
Expand All @@ -28,3 +33,13 @@ jobs:
repository-name: quark-ecosystem/quarkd-docs
token: ${{ secrets.GIT_ACTION }}
target-folder: react/

# 部署到当前仓库的 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 提交信息,自由填写

0 comments on commit 6ad9f27

Please sign in to comment.