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 19
19
- name : Setup gradlew permissions
20
20
run : chmod +x gradlew
21
21
- name : Build with Gradle
22
- run : ./gradlew build
22
+ run : ./gradlew build '-Pversion=${{ github.run_number }}'
23
23
- name : Upload Artifact
24
24
uses : actions/upload-artifact@v3
25
25
with :
26
26
name : JsScripts
27
- path : ./build/libs/*
27
+ path : ./build/libs/jsscripts-${{ github.run_number }}.jar
28
+ - name : Publish Release
29
+ uses :
marvinpinto/[email protected]
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 {
6
6
7
7
import net.fabricmc.loom.task.RemapJarTask
8
8
9
- version = project. mod_version
9
+ // version = project.mod_version -> set using "gradlew build '-Pversion=HERE'"
10
10
group = project. maven_group
11
11
12
12
repositories {
Original file line number Diff line number Diff line change 1
1
# Done to increase the memory available to gradle.
2
- org.gradle.jvmargs =-Xmx1G
2
+ org.gradle.jvmargs =-Xmx2G
3
3
# Fabric Properties
4
4
# check these on https://modmuss50.me/fabric.html
5
5
minecraft_version =1.19.2
@@ -11,5 +11,4 @@ maven_group=de.blazemcworld
11
11
archives_base_name =jsscripts
12
12
# Dependencies
13
13
# 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() {
30
30
.executes ((e ) -> {
31
31
JsScripts .displayChat (Text .literal ("Invalid usage! Usage:" ).formatted (Formatting .AQUA ));
32
32
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 ) );
39
39
return 1 ;
40
40
})
41
41
.then (argument ("classes" , StringArgumentType .greedyString ())
You can’t perform that action at this time.
0 commit comments