diff --git a/.github/json/config-latest.json b/.github/json/config-latest.json index de302dc8b26..3a4605c410a 100644 --- a/.github/json/config-latest.json +++ b/.github/json/config-latest.json @@ -19,5 +19,5 @@ "empty_template": "", "ignore_labels": ["ignore changelog"], "max_pull_requests": 1000, - "max_back_track_time_days": 30 + "max_back_track_time_days": 60 } diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index b3fe8645207..3af4655cb1f 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -14,6 +14,7 @@ jobs: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ github.token }} + PUBLISH: ${{ !contains(github.event.commits[0].message, '[no-snapshot]') }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} MAVEN_USER: ${{ secrets.MAVEN_USER }} SNAPSHOT: true @@ -34,11 +35,13 @@ jobs: - name: Build run: ./gradlew build --build-cache - name: Publish to Maven - if: github.repository_owner == 'GregTechCEu' + if: github.repository_owner == 'GregTechCEu' && env.PUBLISH run: ./gradlew publish --build-cache - name: Rename Jars + if: env.PUBLISH run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT-$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done; - name: Upload Artifacts + if: env.PUBLISH uses: actions/upload-artifact@v4 with: name: build-artifacts @@ -47,14 +50,15 @@ jobs: retention-days: 90 - name: Changelog id: changelog + if: env.PUBLISH uses: mikepenz/release-changelog-builder-action@v5 with: configuration: ./.github/json/config-latest.json - fromTag: latest-${{ github.ref_name }} toTag: ${{ github.ref }} fetchViaCommits: true failOnError: false - name: Release Latest + if: env.PUBLISH uses: andelf/nightly-release@46e2d5f80828ecc5c2c3c819eb31186a7cf2156c with: tag_name: latest-${{ github.ref_name }} diff --git a/gradle.properties b/gradle.properties index 2394d7b3024..78c7206b722 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ org.gradle.caching = true # Mod Info mod_id = gtceu mod_name = GregTech -mod_version = 1.6.5 +mod_version = 1.7.0 mod_description = GregTech CE Unofficial, ported from 1.12.2 mod_license = LGPL-3.0 license mod_url = https://github.com/GregTechCEu/GregTech-Modern/