diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml new file mode 100644 index 0000000000..453004a965 --- /dev/null +++ b/.github/workflows/contributors.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..28815622a5 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/wiki-deploy.yml b/.github/workflows/wiki-deploy.yml index 3641fed01c..49a53facd8 100644 --- a/.github/workflows/wiki-deploy.yml +++ b/.github/workflows/wiki-deploy.yml @@ -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 diff --git a/README.md b/README.md index 4877fdb97c..7996f3c9fa 100644 --- a/README.md +++ b/README.md @@ -109,152 +109,8 @@ https://nitwikit.yizhan.wiki/ 他们为文档贡献了部分内容/页面 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Radiation-pi -
- Radiation-pi -
-
- - gyc123456-1 -
- gyc123456-1 -
-
- - liangcha385 -
- 凉茶是帅哥 -
-
- - lRENyaaa -
- RENaa_FD -
-
- - TATyKeFei -
- 哈2哈哈哈3 -
-
- - Lafcadia -
- Lafcadia -
-
- - FallenCrystal -
- Akkariin -
-
- - TheFloodDragon -
- 蛟龙 -
-
- - ImgBotApp -
- Imgbot -
-
- - CkaDebug -
- Debug-Cracked -
-
- - lim114514 -
- lim114514 -
-
- - HaHaWTH -
- DGun Otto -
-
- - MySoulcutting -
- White_Souls -
-
- - MoLiyi-WD -
- MoLiyi-WD -
-
- - LittleChest -
- LittleChest -
-
- - SeaOrangejuice -
- Sea_of_Orange -
-
- - IAFEnvoy -
- IAFEnvoy -
-
- - serverbread -
- SB -
-
- - TalentsRC -
- TalentsRC -
-
- + + ## 📜 笨蛋脚本