diff --git a/.github/workflows/build_lowest.yml b/.github/workflows/build_lowest.yml new file mode 100644 index 0000000..65bc0b8 --- /dev/null +++ b/.github/workflows/build_lowest.yml @@ -0,0 +1,29 @@ +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + if: "!contains(github.event.commits[0].message, '[ci-skip]')" + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + cache: 'gradle' + - uses: gradle/actions/setup-gradle@v4 + - name: Configure Git + run: git config --global user.email "no-reply@github.com" && git config --global user.name "Gitea Actions" + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Set paper version + run: | + sed -i "s/^paper_version = .*/paper_version = 1.20.6-R0.1-SNAPSHOT/" gradle.properties + - name: Build + run: ./gradlew shadowJar --no-daemon --stacktrace + - name: Rebuild on Failure + if: ${{ failure() }} + run: | + ./gradlew clean cleanCache + ./gradlew shadowJar --no-daemon --stacktrace diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f0ca767..4747cc7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -79,7 +79,7 @@ jobs: version: ${{ env.VERSION }} changelog: ${{ github.event.release.body }} relations: Vebnzrzj:optional - game_versions: 1.21,1.21.1,1.21.2,1.21.3,1.21.4 + game_versions: 1.20.6,1.21,1.21.1,1.21.2,1.21.3,1.21.4 release_type: ${{ env.VERSION_TYPE }} loaders: paper,purpur featured: true diff --git a/build.gradle.kts b/build.gradle.kts index 12d36df..2e90b49 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,7 +20,7 @@ repositories { dependencies { // PaperMC API - compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT") + compileOnly("io.papermc.paper:paper-api:${project.property("paper_version")}") // Lombok implementation("org.projectlombok:lombok:1.18.36") diff --git a/gradle.properties b/gradle.properties index 9d9742d..c840964 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,2 @@ -project_version = 0.0.0 \ No newline at end of file +project_version = 0.0.0 +paper_version = 1.21.4-R0.1-SNAPSHOT \ No newline at end of file