From 50db3e4ec75bd256a70a15db0fbd7a77c5be1d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=99=E6=BC=A0=E4=B9=8B=E5=AD=90?= <7850715+maboloshi@users.noreply.github.com> Date: Sun, 12 Nov 2023 16:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=20GitHub=20Action=EF=BC=8C?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=9B=B4=E6=96=B0=E8=B4=A1=E7=8C=AE=E8=80=85?= =?UTF-8?q?=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..a04fd00d1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI +on: + workflow_dispatch: + +jobs: + build-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: gh-pages + + - name: Generate Contributors Images + uses: jaywcjlove/github-action-contributors@v1.3.5 + id: contributors + with: + filter-author: (renovate\[bot\]|renovate-bot|@github-actions-bot|dependabot\[bot\]) + avatarSize: 42 + + - name: Modify README.md + uses: jaywcjlove/github-action-modify-file-content@v1.4.4 + with: + branch: gh-pages + path: README.md + openDelimiter: '' + closeDelimiter: '' + body: | + ${{steps.contributors.outputs.htmlList}} + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + commit_message: '[${{steps.tag_version.outputs.tag}}] ${{ github.event.head_commit.message }}' + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./.deploy + user_name: github-actions[bot] + user_email: github-actions[bot]@users.noreply.github.com \ No newline at end of file