From a9eb7171bb615d18dac878a173a037914886c4ea Mon Sep 17 00:00:00 2001 From: yanglbme Date: Tue, 16 Feb 2021 10:49:35 +0800 Subject: [PATCH] docs: update workflows and index page --- .github/workflows/branch-merge.yml | 6 +- .github/workflows/prettier.yml | 24 ++-- .github/workflows/sync.yml | 28 ++--- index.html | 189 +++++++++++++---------------- master.gh | 3 - 5 files changed, 110 insertions(+), 140 deletions(-) delete mode 100644 master.gh diff --git a/.github/workflows/branch-merge.yml b/.github/workflows/branch-merge.yml index 684776c..99f4082 100644 --- a/.github/workflows/branch-merge.yml +++ b/.github/workflows/branch-merge.yml @@ -2,7 +2,7 @@ name: Merge Branch on: push: - branches: [ imgbot ] + branches: [imgbot] jobs: merge-branch: @@ -13,5 +13,5 @@ jobs: with: github_token: ${{ github.token }} source_ref: ${{ github.ref }} - target_branch: 'main' - commit_message_template: '[Automated] Merged {source_ref} into {target_branch}' + target_branch: "main" + commit_message_template: "[Automated] Merged {source_ref} into {target_branch}" diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 7227502..37c6004 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -4,22 +4,22 @@ on: pull_request: push: branches: - - main + - main jobs: prettier: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} - - name: Prettify code - uses: creyD/prettier_action@v3.0 - with: - prettier_options: --write **/*.{html,js,md} - commit_message: 'docs: prettify code' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Prettify code + uses: creyD/prettier_action@v3.3 + with: + prettier_options: --write **/*.{md} + commit_message: "style: prettify code" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 2a862b7..0daf6c2 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -2,31 +2,25 @@ name: Sync on: push: - branches: [ main ] + branches: [main] jobs: build: runs-on: ubuntu-latest if: github.repository == 'doocs/source-code-hunter' steps: - - name: Sync to Gitee - uses: wearerequired/git-mirror-action@master - env: - # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY + - name: Sync to Gitee + uses: wearerequired/git-mirror-action@master + env: SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} - with: - # 注意替换为你的 GitHub 源仓库地址 - source-repo: "git@github.com:doocs/source-code-hunter.git" - # 注意替换为你的 Gitee 目标仓库地址 - destination-repo: "git@gitee.com:Doocs/source-code-hunter.git" + with: + source-repo: git@github.com:doocs/source-code-hunter.git + destination-repo: git@gitee.com:Doocs/source-code-hunter.git - - name: Build Gitee Pages - uses: yanglbme/gitee-pages-action@master - with: - # 注意替换为你的 Gitee 用户名 + - name: Build Gitee Pages + uses: yanglbme/gitee-pages-action@main + with: gitee-username: yanglbme - # 注意在 Settings->Secrets 配置 GITEE_PASSWORD gitee-password: ${{ secrets.GITEE_PASSWORD }} - # 注意替换为你的 Gitee 仓库 gitee-repo: doocs/source-code-hunter - branch: main \ No newline at end of file + branch: main diff --git a/index.html b/index.html index a10b06a..1f55007 100644 --- a/index.html +++ b/index.html @@ -1,109 +1,88 @@ - - - 读尽天下源码,心中自然无码 - - - - - - - - - - - -
本系列知识由 Doocs 开源社区总结发布
- + + + + + + + + + + + + + - hook.afterEach(function (html) { - return html + footer; - }); - }, - ], - }; - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/master.gh b/master.gh deleted file mode 100644 index 61be518..0000000 --- a/master.gh +++ /dev/null @@ -1,3 +0,0 @@ -git add . -git commit -m "auto update" -git push -u -f origin master \ No newline at end of file