File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,42 +12,42 @@ jobs:
1212 runs-on : ubuntu-latest
1313
1414 steps :
15- - name : 检出代码
15+ - name : Checkout code
1616 uses : actions/checkout@v4
1717 with :
1818 submodules : recursive
1919
20- - name : 设置 Java 21
20+ - name : Set up Java 21
2121 uses : actions/setup-java@v4
2222 with :
2323 distribution : ' temurin'
2424 java-version : ' 21'
2525 cache : ' gradle'
2626
27- - name : 授予 Gradle 执行权限
27+ - name : Grant execute permission for gradlew
2828 run : chmod +x gradlew
2929
30- - name : 构建项目并生成 ShadowJar
30+ - name : Build with Gradle and create ShadowJar
3131 run : ./gradlew :plugin-runner:shadowJar --no-daemon
3232
33- - name : 验证构建产物
33+ - name : Verify build artifact
3434 run : |
3535 if [ -f plugin-runner/build/libs/nukkit-addon-bridge.jar ]; then
36- echo "✓ 构建产物已生成 "
36+ echo "✓ Build artifact generated successfully "
3737 ls -lh plugin-runner/build/libs/nukkit-addon-bridge.jar
3838 else
39- echo "✗ 构建产物未找到 "
39+ echo "✗ Build artifact not found "
4040 exit 1
4141 fi
4242
43- - name : 上传构建产物
43+ - name : Upload build artifact
4444 uses : actions/upload-artifact@v4
4545 with :
4646 name : nukkit-addon-bridge
4747 path : plugin-runner/build/libs/nukkit-addon-bridge.jar
4848 if-no-files-found : error
4949
50- - name : 上传到 Release(仅标签推送)
50+ - name : Upload to Release (on tag push only)
5151 if : startsWith(github.ref, 'refs/tags/')
5252 uses : softprops/action-gh-release@v1
5353 with :
Original file line number Diff line number Diff line change 3030
3131# Package Files #
3232* .jar
33+ ! gradle /wrapper /gradle-wrapper.jar
3334! adapter-pm1e /lib /patched.jar
3435* .war
3536* .nar
You can’t perform that action at this time.
0 commit comments