Skip to content

Commit 99cfb4f

Browse files
committed
自动选择版本测试
1 parent 61e0997 commit 99cfb4f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on : [push, pull_request]
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
12-
1311
steps:
1412
- name: Cache
1513
uses: actions/cache@v4
@@ -21,6 +19,12 @@ jobs:
2119
restore-keys: |
2220
${{ runner.os }}-gradle-
2321
- uses: actions/checkout@v4
22+
- uses: madhead/read-java-properties@latest
23+
id: mod_version
24+
with:
25+
file: gradle.properties
26+
property: mod_version
27+
default: 1.0.0
2428
- name: Set up JDK 21
2529
uses: actions/setup-java@v4
2630
with:
@@ -37,6 +41,6 @@ jobs:
3741
- name: Upload binaries to release
3842
uses: actions/upload-artifact@v4
3943
with:
40-
name: wild_wind-1.0.0.jar
44+
name: wild_wind-${{steps.version.outputs.mod_version}}.jar
4145
path: build/libs/wild_wind-1.0.0.jar
4246
repo-token: ${{ secrets.ACTION_TOKEN }}

0 commit comments

Comments
 (0)