fix workflow

This commit is contained in:
lilingfengdev 2024-06-25 15:16:54 +08:00
parent ae7fb75a2c
commit 5d4ec1a644
4 changed files with 59 additions and 146 deletions

23
.github/workflows/contributors.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: 生成贡献列表
on:
push:
branches:
- main
paths:
- 'README.md'
jobs:
contrib-readme-job:
runs-on: ubuntu-latest
name: 生成贡献列表
permissions:
contents: write
pull-requests: write
steps:
- name: Contribute List
uses: akhilmhdh/contributors-readme-action@v2.3.10
with:
image_size: 50
columns_per_row: 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

27
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Wiki Deploy
on:
[pull_request,push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
# 启用缓存加速
- name: Cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# 安装 Npm 并构建
- name: Install and Build
run: npm install && npm run build

View File

@ -4,6 +4,9 @@ name: Wiki Deploy
on:
push:
branches: [ 'main' ]
paths:
- 'docs/**'
- 'package.json'
# 设置权限
permissions:
@ -22,6 +25,10 @@ jobs:
# 拉取代码
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
# 启用缓存加速部署
- name: Cache
uses: actions/cache@v4

148
README.md
View File

@ -109,152 +109,8 @@ https://nitwikit.yizhan.wiki/
他们为文档贡献了部分内容/页面
<table>
<tbody>
<tr>
<td align="center">
<a href="https://github.com/Radiation-pi">
<img src="https://avatars.githubusercontent.com/u/96102795?v=4" width="50;" alt="Radiation-pi"/>
<br />
<sub><b>Radiation-pi</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/gyc123456-1">
<img src="https://avatars.githubusercontent.com/u/69791212?v=4" width="50;" alt="gyc123456-1"/>
<br />
<sub><b>gyc123456-1</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/liangcha385">
<img src="https://avatars.githubusercontent.com/u/108937242?v=4" width="50;" alt="liangcha385"/>
<br />
<sub><b>凉茶是帅哥</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/lRENyaaa">
<img src="https://avatars.githubusercontent.com/u/92320175?v=4" width="50;" alt="lRENyaaa"/>
<br />
<sub><b>RENaa_FD</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/TATyKeFei">
<img src="https://avatars.githubusercontent.com/u/125815900?v=4" width="50;" alt="TATyKeFei"/>
<br />
<sub><b>哈2哈哈哈3</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Lafcadia">
<img src="https://avatars.githubusercontent.com/u/147896059?v=4" width="50;" alt="Lafcadia"/>
<br />
<sub><b>Lafcadia</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/FallenCrystal">
<img src="https://avatars.githubusercontent.com/u/71176602?v=4" width="50;" alt="FallenCrystal"/>
<br />
<sub><b>Akkariin</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/TheFloodDragon">
<img src="https://avatars.githubusercontent.com/u/75253383?v=4" width="50;" alt="TheFloodDragon"/>
<br />
<sub><b>蛟龙</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ImgBotApp">
<img src="https://avatars.githubusercontent.com/u/31427850?v=4" width="50;" alt="ImgBotApp"/>
<br />
<sub><b>Imgbot</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/CkaDebug">
<img src="https://avatars.githubusercontent.com/u/141492699?v=4" width="50;" alt="CkaDebug"/>
<br />
<sub><b>Debug-Cracked</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/lim114514">
<img src="https://avatars.githubusercontent.com/u/113185430?v=4" width="50;" alt="lim114514"/>
<br />
<sub><b>lim114514</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/HaHaWTH">
<img src="https://avatars.githubusercontent.com/u/102713261?v=4" width="50;" alt="HaHaWTH"/>
<br />
<sub><b>DGun Otto</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MySoulcutting">
<img src="https://avatars.githubusercontent.com/u/72398605?v=4" width="50;" alt="MySoulcutting"/>
<br />
<sub><b>White_Souls</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MoLiyi-WD">
<img src="https://avatars.githubusercontent.com/u/166040564?v=4" width="50;" alt="MoLiyi-WD"/>
<br />
<sub><b>MoLiyi-WD</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/LittleChest">
<img src="https://avatars.githubusercontent.com/u/81231195?v=4" width="50;" alt="LittleChest"/>
<br />
<sub><b>LittleChest</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/SeaOrangejuice">
<img src="https://avatars.githubusercontent.com/u/116551329?v=4" width="50;" alt="SeaOrangejuice"/>
<br />
<sub><b>Sea_of_Orange</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/IAFEnvoy">
<img src="https://avatars.githubusercontent.com/u/83523430?v=4" width="50;" alt="IAFEnvoy"/>
<br />
<sub><b>IAFEnvoy</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/serverbread">
<img src="https://avatars.githubusercontent.com/u/119761840?v=4" width="50;" alt="serverbread"/>
<br />
<sub><b>SB</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/TalentsRC">
<img src="https://avatars.githubusercontent.com/u/85682725?v=4" width="50;" alt="TalentsRC"/>
<br />
<sub><b>TalentsRC</b></sub>
</a>
</td>
</tr>
<tbody>
</table>
<!-- readme: contributors,Radiation-pi/-,lilingfengdev/-,postyizhan/-,ImgBotApp/- -start -->
<!-- readme: contributors,Radiation-pi/-,lilingfengdev/-,postyizhan/-,ImgBotApp/- -end -->
## 📜 笨蛋脚本