Skip to content

Commit fdf3632

Browse files
committed
👷 调整 CI 顺序
1 parent 1462ace commit fdf3632

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Manual Release
1+
name: Release
22

33
on:
44
workflow_dispatch:
@@ -16,17 +16,6 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19-
- name: Set up JDK 21
20-
uses: actions/setup-java@v4
21-
with:
22-
java-version: "21"
23-
distribution: "temurin"
24-
25-
- name: Setup Gradle
26-
uses: gradle/actions/setup-gradle@v4
27-
with:
28-
gradle-version: "8.9"
29-
3019
- name: Get version from gradle.properties
3120
id: project_version
3221
run: echo "version=$(grep '^version=' gradle.properties | cut -d'=' -f2)" >> $GITHUB_OUTPUT
@@ -43,6 +32,19 @@ jobs:
4332
echo "Version v${VERSION} is new, will create release"
4433
fi
4534
35+
- name: Set up JDK 21
36+
if: steps.check_version.outputs.exists == 'false'
37+
uses: actions/setup-java@v4
38+
with:
39+
java-version: "21"
40+
distribution: "temurin"
41+
42+
- name: Setup Gradle
43+
if: steps.check_version.outputs.exists == 'false'
44+
uses: gradle/actions/setup-gradle@v4
45+
with:
46+
gradle-version: "8.9"
47+
4648
- name: Package artifacts
4749
if: steps.check_version.outputs.exists == 'false'
4850
run: gradle package

0 commit comments

Comments
 (0)