diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f0bcc0..f060263 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,21 +6,25 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: 21 cache: 'gradle' - name: Make gradlew executable run: chmod +x ./gradlew - name: Build with Gradle run: ./gradlew build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: Artifact - path: ./build/libs/*.jar + path: ./build/libs/ + - name: Publish to maven + if: contains(github.event.head_commit.message, '[push]') || contains(github.event.head_commit.message, '[build]') + env: + SAP_SECRET: ${{ secrets.SAP_SECRET }} + run: ./gradlew publish - name: Publish To Curseforge if: contains(github.event.head_commit.message, '[publish]') || contains(github.event.head_commit.message, '[curseforge]') env: @@ -30,9 +34,4 @@ jobs: if: contains(github.event.head_commit.message, '[publish]') || contains(github.event.head_commit.message, '[modrinth]') env: MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }} - run: ./gradlew modrinth --stacktrace - - name: Publish to maven - if: contains(github.event.head_commit.message, '[push]') || contains(github.event.head_commit.message, '[build]') - env: - SAP_SECRET: ${{ secrets.SAP_SECRET }} - run: ./gradlew publish \ No newline at end of file + run: ./gradlew modrinth --stacktrace \ No newline at end of file diff --git a/changelog.md b/changelog.md index 0f7d22c..38475d8 100644 --- a/changelog.md +++ b/changelog.md @@ -1 +1 @@ -* Initial update to 1.20.4 \ No newline at end of file +* Initial update to 1.20.5 \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 1c7d1b9..ae2fb49 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ mod_id=densetrees mod_archive_name=DenseTrees # Version -version=6.0.0 +version=7.0.0 #Publishing mod_name=Dense Trees