Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Mar 23, 2024
1 parent 2dd9d27 commit 1bd74e5
Show file tree
Hide file tree
Showing 17 changed files with 157 additions and 143 deletions.
34 changes: 0 additions & 34 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
Before proceeding, please make sure to do this first. 📋
- Ensure you are running the **latest** version of the mod.
- A similar issue hasn't been filled before.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: textarea
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.
validations:
required: false
- type: input
attributes:
label: Logs
description: |
If available, add logs to help identify your problem.
Please upload your log to [Github Gist](https://gist.github.com/), [mslo.gs](https://mclo.gs/) or any other pasting platform.
validations:
required: false
- type: input
id: mod-version
attributes:
label: Mod Version
description: What version of the mod are you running?
validations:
required: true
- type: input
id: mc-version
attributes:
label: Minecraft Version
description: What version of Minecraft are you running?
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Suggesting Ideas | 💡
url: https://github.com/constellation-mc/recipe_book_is_pain/discussions/categories/ideas
about: If you have a suggestion, please post it here. Be sure to check pinned to see how to make a good suggestion!
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/crash_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Crash Report
description: File a crash report
title: "[Crash]: "
labels: ["crash"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this crash report!
Before proceeding, please make sure to do this first. 📋
- Ensure you are running the **latest** version of the mod.
- A similar report hasn't been filled before.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Please explain in detail how this crash happened.
validations:
required: true
- type: input
attributes:
label: Logs
description: |
`latest.log` or `crash-20xx-xx-xx_xx.xx.xx-(client/server).log`.
Please upload your log to [Github Gist](https://gist.github.com/), [mslo.gs](https://mclo.gs/) or any other pasting platform.
validations:
required: true
- type: input
id: mod-version
attributes:
label: Mod Version
description: What version of the mod are you running?
validations:
required: true
- type: input
id: mc-version
attributes:
label: Minecraft Version
description: What version of Minecraft are you running?
validations:
required: true
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

27 changes: 9 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,29 @@ on: [ pull_request, push ]

jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [ 17 ]
# and run on both Linux and Windows
os: [ ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3.4.0
uses: actions/checkout@v4.1.1
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v3.10.0
uses: gradle/wrapper-validation-action@v2.1.1
- name: setup jdk 17
uses: actions/setup-java@v4.1.0
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
java-version: 17
cache: gradle
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Retrieve Version #https://stackoverflow.com/questions/71089787/how-to-get-version-name-from-android-gradle-file-in-github-actions
run: |
echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew -q printVersionName)" >> $GITHUB_ENV
echo "GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV
- name: build
run: ./gradlew build
- name: Retrieve Version #https://stackoverflow.com/questions/71089787/how-to-get-version-name-from-android-gradle-file-in-github-actions
run: |
echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew -q printVersionName)" >> $GITHUB_ENV
echo "GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV
- name: capture build artifacts
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.3.1
with:
name: ${{ env.VERSION_INFORMATION }} [${{ env.GIT_HASH }}] #https://stackoverflow.com/questions/58886293/getting-current-branch-and-commit-hash-in-github-action
path: build/libs/
path: build/libs/
40 changes: 25 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,43 @@

name: publish
on: [workflow_dispatch]
on:
workflow_dispatch:
inputs:
version_type:
description: "The type of this version. e.g alpha"
type: choice
default: beta
options:
- release
- beta
- alpha
required: false

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3.4.0
uses: actions/checkout@v4.1.1
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v2.1.1
- name: setup jdk 17
uses: actions/setup-java@v3.10.0
uses: actions/setup-java@v4.1.0
with:
distribution: 'temurin'
java-version: 17
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: Retrieve Version #https://stackoverflow.com/questions/71089787/how-to-get-version-name-from-android-gradle-file-in-github-actions
- name: retrieve version #https://stackoverflow.com/questions/71089787/how-to-get-version-name-from-android-gradle-file-in-github-actions
run: |
echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew -q printVersionName)" >> $GITHUB_ENV
echo "VERSION_PLAIN=$(${{github.workspace}}/gradlew -q printVersion)" >> $GITHUB_ENV
- name: Publish Minecraft Mods
uses: Kir-Antipov/[email protected]
- name: publish minecraft mods
uses: Kir-Antipov/[email protected].0
with:
version-type: release
version-type: ${{ inputs.version_type }}
changelog-file: CHANGELOG.md
name: ${{ env.VERSION_INFORMATION }}
version: ${{ env.VERSION_PLAIN }}
Expand All @@ -36,19 +48,17 @@ jobs:
loaders: |
fabric
github-tag: v${{ env.VERSION_PLAIN }}
java: |
17
github-tag: ${{ env.VERSION_PLAIN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-commitish: ${{ github.sha }}
github-prerelease: false

modrinth-id: etNS9OnA
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: true
modrinth-unfeature-mode: subset
modrinth-dependencies: |
dark-matter(embedded)
curseforge-id: 643246
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
curseforge-dependencies: |
dark-matter(embedded)
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'fabric-loom' version '1.3-SNAPSHOT'
id 'fabric-loom' version '1.5-SNAPSHOT'
id 'maven-publish'
id 'io.github.juuxel.loom-vineflower' version '1.11.+'
}

version = project.mod_version
Expand Down Expand Up @@ -38,11 +37,16 @@ dependencies {
}

processResources {
inputs.property "version", project.version
def map = [
"version": project.version,
"minecraft_version": project.minecraft_version,
"loader_version": project.loader_version
]
inputs.properties(map)
filteringCharset "UTF-8"

filesMatching("fabric.mod.json") {
expand "version": project.version
expand map
}
}

Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ org.gradle.jvmargs=-Xmx1G
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.14.22
loader_version=0.15.7
# Mod Properties
mod_version=0.11.0-1.20.1
maven_group=me.melontini
archives_base_name=recipe-book-is-pain

dark_matter=f68de8d00f
owo_version=0.11.1+1.20
dark_matter=3.1.0-1.20
owo_version=0.11.2+1.20
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
33 changes: 0 additions & 33 deletions src/main/java/me/melontini/recipebookispain/FeatureMultiverse.java

This file was deleted.

Loading

0 comments on commit 1bd74e5

Please sign in to comment.