13
13
uses : actions/setup-java@v1
14
14
with :
15
15
java-version : 14
16
-
16
+ # when you don't
17
17
- name : Change wrapper permissions
18
18
run : chmod +x ./gradlew
19
19
@@ -30,18 +30,23 @@ jobs:
30
30
with :
31
31
path : ~/.gradle/wrapper
32
32
key : ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
33
-
33
+ # Build all mods
34
34
- name : Build mod jar
35
35
run : ./gradlew deploy -PgithubRepo="$GITHUB_REPOSITORY"
36
36
37
+ # upload to action artifact
37
38
- name : Upload built jar file
38
39
uses : actions/upload-artifact@v2
39
40
with :
41
+ # replace with your mods name
42
+ # TODO how to get current repo name
40
43
name : Example-Mods
41
44
path : build/libs/Example-Mods.jar
45
+
42
46
- name : Upload built android jar file
43
47
uses : actions/upload-artifact@v2
44
48
with :
49
+ # replace with your mods name
45
50
name : Example-Mods-Dexed
46
51
path : build/libs/Example-Mods-Dexed.jar
47
52
55
60
| xargs -I '{}' \
56
61
curl -X DELETE -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$GITHUB_REPOSITORY/releases/{}
57
62
58
-
63
+ # cat eqv
59
64
- name : Read changelog
60
65
id : manifest
61
66
uses : juliangruber/read-file-action@v1
@@ -69,12 +74,13 @@ jobs:
69
74
env :
70
75
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71
76
with :
77
+ # write it by yourself, not worth automating it
72
78
tag_name : " Snapshot"
73
79
release_name : " 0.0.0"
74
80
body : " ${{ steps.manifest.outputs.content }}"
75
81
draft : true
76
82
77
-
83
+ # upload to release
78
84
- name : Upload Dex Core
79
85
id : upload-release-core-dex
80
86
uses : actions/upload-release-asset@v1
85
91
asset_path : ./build/libs/Example-Mods-Dexed.jar
86
92
asset_name : dexed-Example-Mods.jar
87
93
asset_content_type : application/zip
88
-
94
+
95
+ # upload to release
96
+ # wait Dex Core work on pc too
89
97
- name : Upload Core
90
98
id : upload-release-core
91
99
uses : actions/upload-release-asset@v1
0 commit comments