mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2024-12-19 23:38:53 +08:00
更新CI-CD以适配gradle
This commit is contained in:
parent
86fe23421f
commit
533063ee7c
@ -13,18 +13,16 @@ jobs:
|
||||
uses: https://ssl.lunadeer.cn:14446/actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: "Set up Maven"
|
||||
uses: https://ssl.lunadeer.cn:14446/actions/setup-maven@v4
|
||||
- name: "Set up JDK 17"
|
||||
- name: "Set up JDK 21"
|
||||
uses: https://ssl.lunadeer.cn:14446/actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'zulu'
|
||||
cache: maven
|
||||
- name: "Build with Maven"
|
||||
run: mvn -B package --file pom.xml
|
||||
cache: gradle
|
||||
- name: "Build with Gradle"
|
||||
run: ./gradlew shadowJar
|
||||
- name: "Copy jar to staging"
|
||||
run: mkdir staging && cp target/*.jar staging
|
||||
run: mkdir staging && cp build/libs/*.jar staging/
|
||||
- name: "Build & test"
|
||||
run: |
|
||||
echo "done!"
|
||||
|
Loading…
Reference in New Issue
Block a user