Skip to content

Commit

Permalink
Register version
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotori316 committed Feb 18, 2024
1 parent 97799c9 commit 4b27bf3
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 49 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,21 @@ on:
- "!*"
paths:
- "src/main/**"
- "build.gradle"
- ".github/workflows/gradle.yml"

jobs:
check:
runs-on: ubuntu-latest
container:
image: ghcr.io/kotori316/fictional-meme/fictional-meme:1.16.5
credentials:
username: kotori316
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout QuarryPlus repo
uses: actions/checkout@v3
- uses: actions/setup-java@v3
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
java-version: '17'
- name: Compile
run: chmod +x ./gradlew && ./gradlew compileScala
run: chmod +x ./gradlew && ./gradlew classes
- name: download_assets
run: chmod +x ./gradlew && (./gradlew clean downloadAssets || true)
continue-on-error: true
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/pr.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/release_forge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release

on:
workflow_dispatch:

jobs:
release:
permissions:
id-token: write
contents: write
packages: write
# See https://github.com/Kotori316/common-script/blob/main/.github/workflows/release-prod-gradle.yaml
uses: 'Kotori316/common-script/.github/workflows/release-prod-gradle.yaml@main'
with:
# release_command: 'assemble publishToMavenLocal curseforge githubRelease registerVersion publish --continue'
release_command: 'assemble publishToMavenLocal'
enable_signature_check: true
secrets: inherit
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ buildscript {
plugins {
id("maven-publish")
id "com.github.breadmoirai.github-release" version "2.2.12"
id("com.kotori316.plugin.cf") version("2.3")
}
apply plugin: 'scala'
apply plugin: 'net.minecraftforge.gradle'
Expand Down Expand Up @@ -464,3 +465,13 @@ publishing {
}
}
}

tasks.register("registerVersion", com.kotori316.plugin.cf.CallVersionFunctionTask.class) {
functionEndpoint = readVersionFunctionEndpoint(project)
gameVersion = "1.16"
platform = "forge"
platformVersion = project.findProperty("forgeVersion") as String
modName = "quarryplus"
changelog = "QuarryPlus for 1.16"
homepage = "https://www.curseforge.com/minecraft/mc-mods/additional-enchanted-miner"
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
modVersion=16.1.11
modVersion=16.1.13
forgeVersion=1.16.5-36.2.34
mappingVersion=20201028-1.16.3
jeiVersion=7.7.1.152
Expand Down
6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven { url = uri("https://maven.kotori316.com") }
}
}

0 comments on commit 4b27bf3

Please sign in to comment.