Skip to content

Commit

Permalink
Update to use the new rule printer
Browse files Browse the repository at this point in the history
Simplifies so much stuff
  • Loading branch information
altrisi committed Oct 20, 2022
1 parent cc63625 commit b9c1057
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 47 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,36 +120,11 @@ jobs:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Replace fabric.mod.json
run: |
cd src/main/resources
rm fabric.mod.json
echo '
{
"schemaVersion": 1,
"id": "carpetextra",
"version": "1.4.11",
"entrypoints": {
"main": [ "carpetextra.utils.RulePrinter" ],
"preLaunch": [ "carpet.utils.CarpetRulePrinter" ]
}
}' > fabric.mod.json
cd ../../../
- name: Run solution
- name: Update README with changes to rules
run: |
chmod +x gradlew
./gradlew runServer > settings-toProccess.txt
- name: Proccess Gradle log into a pretty readme page
run: |
cat README-header.md > README.md
from1="# Carpet Mod Settings";
File=settings-toProccess.txt
if grep -q "Deprecated Gradle features" "$File"; then # Happens after update to Gradle 6
to2="Deprecated Gradle features";
else
to2="BUILD SUCCESSFUL"
fi
a="$(cat settings-toProccess.txt)";a="$(echo "${a#*"$from1"}")"; echo "${a%%"$to2"*}" >> README.md
./gradlew runServer --args="-- -carpetDumpRules -dumpFilter=extras -dumpPath ../rules.md"
cat README-header.md rules.md > README.md
- name: Commit updated Readme page
continue-on-error: true
run: |
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.27
yarn_mappings=1.19.2+build.28
loader_version=0.14.9
# check available versions on maven (https://masa.dy.fi/maven/carpet/fabric-carpet/) for the given minecraft version you are using
carpet_core_version=1.4.84+v221018
Expand Down
18 changes: 0 additions & 18 deletions src/main/java/carpetextra/utils/RulePrinter.java

This file was deleted.

0 comments on commit b9c1057

Please sign in to comment.