Skip to content

Commit 4323daf

Browse files
authored
fix: release workflow 修复 gradle actions 废弃参数 (#7)
gradle/actions/setup-gradle@v4 已不再支持 arguments 参数, 改为 setup-gradle 仅配置环境,然后用 ./gradlew 显式执行构建。 Co-authored-by: creeperCN <creeperCN@users.noreply.github.com>
1 parent 593874e commit 4323daf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
java-version: 21
2222
distribution: zulu
2323

24-
- name: Build
24+
- name: Setup Gradle
2525
uses: gradle/actions/setup-gradle@v4
26-
with:
27-
arguments: shadowJar
26+
27+
- name: Build
28+
run: ./gradlew shadowJar --no-daemon
2829

2930
- name: Release
3031
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)