Skip to content

Commit

Permalink
Merge pull request #3 from Varilx-Development/feat/new-supported-version
Browse files Browse the repository at this point in the history
Also support 1.20.6, and add workflows
  • Loading branch information
Knerio authored Jan 1, 2025
2 parents 0b6c3d7 + dabc33d commit 8189be2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build_lowest.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]" && 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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
project_version = 0.0.0
project_version = 0.0.0
paper_version = 1.21.4-R0.1-SNAPSHOT

0 comments on commit 8189be2

Please sign in to comment.