Skip to content

Commit

Permalink
创建 GitHub Action,手动更新贡献者清单
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Nov 12, 2023
0 parents commit 50db3e4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
id: contributors
with:
filter-author: (renovate\[bot\]|renovate-bot|@github-actions-bot|dependabot\[bot\])
avatarSize: 42

- name: Modify README.md
uses: jaywcjlove/[email protected]
with:
branch: gh-pages
path: README.md
openDelimiter: '<!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT-->'
closeDelimiter: '<!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT-END-->'
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

0 comments on commit 50db3e4

Please sign in to comment.