mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2025-01-30 01:59:26 +08:00
修补cicd脚本
This commit is contained in:
parent
6e57cada94
commit
af7c4ad6b2
@ -20,7 +20,14 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
cache: gradle
|
||||
- name: "Build with Gradle"
|
||||
run: ./BuildScript.sh all
|
||||
run: |
|
||||
./gradlew clean
|
||||
./gradlew shadowJar -PBuildFull=false
|
||||
./gradlew shadowJar -PBuildFull=true
|
||||
- name: "Stage"
|
||||
run: |
|
||||
mkdir -p staging
|
||||
mv build/libs/*.jar staging/
|
||||
- name: "Build & test"
|
||||
run: |
|
||||
echo "done!"
|
||||
|
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -19,7 +19,14 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
cache: gradle
|
||||
- name: "Build with Gradle"
|
||||
run: ./BuildScript.sh all
|
||||
run: |
|
||||
./gradlew clean
|
||||
./gradlew shadowJar -PBuildFull=false
|
||||
./gradlew shadowJar -PBuildFull=true
|
||||
- name: "Stage"
|
||||
run: |
|
||||
mkdir -p staging
|
||||
mv build/libs/*.jar staging/
|
||||
- name: "Build & test"
|
||||
run: |
|
||||
TAG=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
||||
|
@ -1,26 +0,0 @@
|
||||
#!/usr/bin bash
|
||||
|
||||
mode=full
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
mode=$1
|
||||
fi
|
||||
|
||||
./gradlew clean
|
||||
|
||||
# all full lite
|
||||
if [ $mode == "all" ]; then
|
||||
./gradlew shadowJar -PBuildFull=false
|
||||
./gradlew shadowJar -PBuildFull=true
|
||||
elif [ $mode == "lite" ]; then
|
||||
./gradlew shadowJar -PBuildFull=false
|
||||
elif [ $mode == "full" ]; then
|
||||
./gradlew shadowJar -PBuildFull=true
|
||||
else
|
||||
echo "Invalid mode: $mode"
|
||||
echo "Usage: $0 [all|full|lite]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p staging
|
||||
mv build/libs/*.jar staging/
|
@ -11,7 +11,7 @@ var libraries = listOf<String>()
|
||||
libraries = libraries + "cn.lunadeer:MinecraftPluginUtils:1.3.10"
|
||||
|
||||
group = "cn.lunadeer"
|
||||
version = "2.13.1-beta"
|
||||
version = "2.13.2-beta"
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||
|
Loading…
Reference in New Issue
Block a user