Skip to content

Commit 2b5347b

Browse files
committed
feat(workflow): 添加 GitHub 贡献者生成工作流
- 新增 .github/workflows/CONTRIBUTORS.yml 工作流文件,用于自动生成贡献者图片并部署到 GitHub Pages。 feat(readme): 在 README 中添加贡献者展示 - 在 README.md 和 README_EN.md 中添加贡献者图片占位符和说明文字,用于展示项目贡献者。
1 parent cb7373b commit 2b5347b

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/CONTRIBUTORS.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- run: mkdir -p build
2+
- name: Generate Contributors Images
3+
uses: jaywcjlove/github-action-contributors@main
4+
with:
5+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
6+
output: build/CONTRIBUTORS.svg
7+
avatarSize: 42
8+
9+
- name: Deploy
10+
uses: peaceiris/actions-gh-pages@v3
11+
with:
12+
github_token: ${{ secrets.GITHUB_TOKEN }}
13+
publish_dir: ./build

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,13 @@ npm run dev
112112

113113
### 2. 贡献列表
114114

115-
![Contributors](https://contrib.rocks/image?repo=anghunk/linuxdo-scripts)
115+
一如既往,感谢我们出色的贡献者们!
116+
117+
<!--GAMFC_DELIMITER-->will be replaced here<!--GAMFC_DELIMITER-END-->
118+
119+
Made with [contributors](https://github.com/jaywcjlove/github-action-contributors).
120+
121+
<!-- ![Contributors](https://contrib.rocks/image?repo=anghunk/linuxdo-scripts) -->
116122

117123
![Stargazers repo roster for @anghunk/linuxdo-scripts](https://reporoster.com/stars/dark/anghunk/linuxdo-scripts)
118124

README_EN.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,13 @@ npm run dev
112112

113113
### 2. Contributors List
114114

115-
![Contributors](https://contrib.rocks/image?repo=anghunk/linuxdo-scripts)
115+
As always, thanks to our amazing contributors!
116+
117+
<!--GAMFC_DELIMITER-->will be replaced here<!--GAMFC_DELIMITER-END-->
118+
119+
Made with [contributors](https://github.com/jaywcjlove/github-action-contributors).
120+
121+
<!-- ![Contributors](https://contrib.rocks/image?repo=anghunk/linuxdo-scripts) -->
116122

117123
![Stargazers repo roster for @anghunk/linuxdo-scripts](https://reporoster.com/stars/dark/anghunk/linuxdo-scripts)
118124

0 commit comments

Comments
 (0)