Skip to content

Commit 09b7bef

Browse files
authored
workflow1 (#60) [no-snapshot]
1 parent 1c4a936 commit 09b7bef

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/json/config-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"empty_template": "",
2020
"ignore_labels": ["ignore changelog"],
2121
"max_pull_requests": 1000,
22-
"max_back_track_time_days": 30
22+
"max_back_track_time_days": 60
2323
}

.github/workflows/auto-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
env:
1616
GITHUB_TOKEN: ${{ github.token }}
17+
PUBLISH: ${{ !contains(github.event.commits[0].message, '[no-snapshot]') }}
1718
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
1819
MAVEN_USER: ${{ secrets.MAVEN_USER }}
1920
SNAPSHOT: true
@@ -34,11 +35,13 @@ jobs:
3435
- name: Build
3536
run: ./gradlew build --build-cache
3637
- name: Publish to Maven
37-
if: github.repository_owner == 'GregTechCEu'
38+
if: github.repository_owner == 'GregTechCEu' && env.PUBLISH
3839
run: ./gradlew publish --build-cache
3940
- name: Rename Jars
41+
if: env.PUBLISH
4042
run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT-$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done;
4143
- name: Upload Artifacts
44+
if: env.PUBLISH
4245
uses: actions/upload-artifact@v4
4346
with:
4447
name: build-artifacts
@@ -47,14 +50,15 @@ jobs:
4750
retention-days: 90
4851
- name: Changelog
4952
id: changelog
53+
if: env.PUBLISH
5054
uses: mikepenz/release-changelog-builder-action@v5
5155
with:
5256
configuration: ./.github/json/config-latest.json
53-
fromTag: latest-${{ github.ref_name }}
5457
toTag: ${{ github.ref }}
5558
fetchViaCommits: true
5659
failOnError: false
5760
- name: Release Latest
61+
if: env.PUBLISH
5862
uses: andelf/nightly-release@46e2d5f80828ecc5c2c3c819eb31186a7cf2156c
5963
with:
6064
tag_name: latest-${{ github.ref_name }}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.caching = true
66
# Mod Info
77
mod_id = gtceu
88
mod_name = GregTech
9-
mod_version = 1.6.5
9+
mod_version = 1.7.0
1010
mod_description = GregTech CE Unofficial, ported from 1.12.2
1111
mod_license = LGPL-3.0 license
1212
mod_url = https://github.com/GregTechCEu/GregTech-Modern/

0 commit comments

Comments
 (0)