File tree Expand file tree Collapse file tree 4 files changed +20
-12
lines changed
src/main/java/de/blazemcworld/jsscripts Expand file tree Collapse file tree 4 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 1919 - name : Setup gradlew permissions
2020 run : chmod +x gradlew
2121 - name : Build with Gradle
22- run : ./gradlew build
22+ run : ./gradlew build '-Pversion=${{ github.run_number }}'
2323 - name : Upload Artifact
2424 uses : actions/upload-artifact@v3
2525 with :
2626 name : JsScripts
27- path : ./build/libs/*
27+ path : ./build/libs/jsscripts-${{ github.run_number }}.jar
28+ - name : Publish Release
29+ uses : marvinpinto/action-automatic-releases@v1.2.1
30+ with :
31+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
32+ automatic_release_tag : " Build-${{ github.run_number }}"
33+ prerelease : false
34+ files : |
35+ ./build/libs/jsscripts-${{ github.run_number }}.jar
36+ LICENSE
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66
77import net.fabricmc.loom.task.RemapJarTask
88
9- version = project. mod_version
9+ // version = project.mod_version -> set using "gradlew build '-Pversion=HERE'"
1010group = project. maven_group
1111
1212repositories {
Original file line number Diff line number Diff line change 11# Done to increase the memory available to gradle.
2- org.gradle.jvmargs =-Xmx1G
2+ org.gradle.jvmargs =-Xmx2G
33# Fabric Properties
44# check these on https://modmuss50.me/fabric.html
55minecraft_version =1.19.2
@@ -11,5 +11,4 @@ maven_group=de.blazemcworld
1111archives_base_name =jsscripts
1212# Dependencies
1313# check this on https://modmuss50.me/fabric.html
14- fabric_version =0.64.0+1.19.2
15- org.gradle.jvmargs =-Xmx4g
14+ fabric_version =0.64.0+1.19.2
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ public void register() {
3030 .executes ((e ) -> {
3131 JsScripts .displayChat (Text .literal ("Invalid usage! Usage:" ).formatted (Formatting .AQUA ));
3232 JsScripts .displayChat (Text .literal ("/jsscripts gen_types <args>" ).formatted (Formatting .AQUA ));
33- JsScripts .displayChat (Text .literal ("Specific classes: the.class.Name" ));
34- JsScripts .displayChat (Text .literal ("All in a package: some.package.*" ));
35- JsScripts .displayChat (Text .literal ("Enable asm for methods: -asm" ));
36- JsScripts .displayChat (Text .literal ("Remap asm output: -remap" ));
37- JsScripts .displayChat (Text .literal ("Show private methods: -private" ));
38- JsScripts .displayChat (Text .literal ("Example: /jsscripts gen_types java.lang.System -private -asm" ));
33+ JsScripts .displayChat (Text .literal ("Specific classes: the.class.Name" ). formatted ( Formatting . AQUA ) );
34+ JsScripts .displayChat (Text .literal ("All in a package: some.package.*" ). formatted ( Formatting . AQUA ) );
35+ JsScripts .displayChat (Text .literal ("Enable asm for methods: -asm" ). formatted ( Formatting . AQUA ) );
36+ JsScripts .displayChat (Text .literal ("Remap asm output: -remap" ). formatted ( Formatting . AQUA ) );
37+ JsScripts .displayChat (Text .literal ("Show private methods: -private" ). formatted ( Formatting . AQUA ) );
38+ JsScripts .displayChat (Text .literal ("Example: /jsscripts gen_types java.lang.System -private -asm" ). formatted ( Formatting . AQUA ) );
3939 return 1 ;
4040 })
4141 .then (argument ("classes" , StringArgumentType .greedyString ())
You can’t perform that action at this time.
0 commit comments