diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..5359e64 --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,60 @@ +name: build-release + +on: + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Set up JDK 16 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 17 + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/loom-cache + ~/.gradle/wrapper + ~/.m2/repository + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: ${{ runner.os }}-gradle + + - run: chmod +x gradlew + + - name: Build Release + run: ./gradlew build --stacktrace + + - name: Upload artifacts to Modrinth, Curseforge and GitHub + uses: Kir-Antipov/mc-publish@v2.0 + with: + modrinth-id: jawg7zT1 + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + + curseforge-id: 594750 + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + + github-token: ${{ secrets.GITHUB_TOKEN }} + + files: build/libs/!(*-@(dev|sources|all)).jar + + version-type: release + + loaders: fabric + + java: 17 + + dependencies: | + fabric-api | depends | 0.46.0 + kirin | includes | 1.10.0-beta.2 + modmenu | recommends | * + + + version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json \ No newline at end of file diff --git a/.gitignore b/.gitignore index 09cd281..c195036 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,6 @@ bin/ # fabric run/ + +# github +.github/secret.json diff --git a/gradle.properties b/gradle.properties index 5a84c25..5d60f52 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,10 +5,10 @@ org.gradle.jvmargs=-Xmx1G # check these on https://fabricmc.net/develop minecraft_version=1.18.1 yarn_mappings=1.18.1+build.22 - loader_version=0.13.3 + loader_version=0.12.11 # Mod Properties - mod_version = 1.1.0 + mod_version = 1.1.1 maven_group = com.lizistired archives_base_name = cave_dust diff --git a/src/main/resources/assets/modid/icon.png b/src/main/resources/assets/modid/icon.png index d1570b1..d77b002 100644 Binary files a/src/main/resources/assets/modid/icon.png and b/src/main/resources/assets/modid/icon.png differ diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index ce85629..605db35 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -37,7 +37,7 @@ "custom": { "modmenu": { "links": { - "modmenu.discord": "https://discord.gg/AgBfPFMJgX" + "modmenu.discord": "https://discord.gg/4m6kQSX6bx" } } }