Skip to content

Commit

Permalink
gamer
Browse files Browse the repository at this point in the history
  • Loading branch information
not-coded committed Oct 16, 2024
1 parent 78b125b commit cc9d769
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 10 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release

on:
release:
types:
- published

jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
21,
]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: Publish to Modrinth
run: ./gradlew chiseledModrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test!!! NEWLINE NEWLINE IGNORE
changes:
- none yet
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (stonecutter.current.isActive) {

modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "codelib" // change to wayfix when done testing
projectId = "wayfix"
versionNumber = project.version
versionName = "v" + property("mod.version") + " [" + property("mod.version_name") + "]"
versionType = "release"
Expand All @@ -124,10 +124,8 @@ modrinth {
}


if(property("deps.minecraft") == "1.16.5") changelog = "# Requires Java 9+\n"

def changes = rootProject.file("CHANGES.md").text.replaceAll(" NEWLINE ", "\n") // fix newline issue
changelog = "" + changes + ""
def changes = rootProject.file("CHANGES.md").text
changelog = (property("deps.java") == "9" ? "# Requires Java 9+\n\n" : "") + changes + ""


System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
Expand Down
4 changes: 2 additions & 2 deletions stonecutter.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ stonecutter.registerChiseled tasks.register("chiseledBuild", stonecutter.chisele
ofTask "build"
}

stonecutter.registerChiseled tasks.register("chiseledPublishMods", stonecutter.chiseled) {
stonecutter.registerChiseled tasks.register("chiseledModrinth", stonecutter.chiseled) {
setGroup "project"
ofTask "publishMods"
ofTask "modrinth"
}

stonecutter.debug false
2 changes: 1 addition & 1 deletion versions/1.19.3/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ mod.version_name=1.19.3-1.19.4
mod.min_target=1.19.3
mod.max_target=1.19.4

publishing.supported_versions =1.19.3,1.19.4
publishing.supported_versions=1.19.3,1.19.4
2 changes: 1 addition & 1 deletion versions/1.19/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ mod.version_name=1.19-1.19.2
mod.min_target=1.19
mod.max_target=1.19.2

publishing.supported_versions =1.19,1.19.1,1.19.2
publishing.supported_versions=1.19,1.19.1,1.19.2

0 comments on commit cc9d769

Please sign in to comment.