Skip to content

Commit 1a92926

Browse files
committed
h
1 parent 425c105 commit 1a92926

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/gradle.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 14
16-
16+
#when you don't
1717
- name: Change wrapper permissions
1818
run: chmod +x ./gradlew
1919

@@ -30,18 +30,23 @@ jobs:
3030
with:
3131
path: ~/.gradle/wrapper
3232
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
33-
33+
#Build all mods
3434
- name: Build mod jar
3535
run: ./gradlew deploy -PgithubRepo="$GITHUB_REPOSITORY"
3636

37+
#upload to action artifact
3738
- name: Upload built jar file
3839
uses: actions/upload-artifact@v2
3940
with:
41+
#replace with your mods name
42+
#TODO how to get current repo name
4043
name: Example-Mods
4144
path: build/libs/Example-Mods.jar
45+
4246
- name: Upload built android jar file
4347
uses: actions/upload-artifact@v2
4448
with:
49+
#replace with your mods name
4550
name: Example-Mods-Dexed
4651
path: build/libs/Example-Mods-Dexed.jar
4752

@@ -55,7 +60,7 @@ jobs:
5560
| xargs -I '{}' \
5661
curl -X DELETE -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$GITHUB_REPOSITORY/releases/{}
5762
58-
63+
#cat eqv
5964
- name: Read changelog
6065
id: manifest
6166
uses: juliangruber/read-file-action@v1
@@ -69,12 +74,13 @@ jobs:
6974
env:
7075
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7176
with:
77+
#write it by yourself, not worth automating it
7278
tag_name: "Snapshot"
7379
release_name: "0.0.0"
7480
body: "${{ steps.manifest.outputs.content }}"
7581
draft: true
7682

77-
83+
#upload to release
7884
- name: Upload Dex Core
7985
id: upload-release-core-dex
8086
uses: actions/upload-release-asset@v1
@@ -85,7 +91,9 @@ jobs:
8591
asset_path: ./build/libs/Example-Mods-Dexed.jar
8692
asset_name: dexed-Example-Mods.jar
8793
asset_content_type: application/zip
88-
94+
95+
#upload to release
96+
#wait Dex Core work on pc too
8997
- name: Upload Core
9098
id: upload-release-core
9199
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)