File tree 3 files changed +64
-2
lines changed 3 files changed +64
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Build agent jar
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout repo
14
+ uses : actions/checkout@v4
15
+ - name : Set up JDK 11
16
+ uses : actions/setup-java@v2
17
+ with :
18
+ java-version : 11
19
+ distribution : temurin
20
+ - name : Grant execute permission for gradlew
21
+ run : chmod +x gradlew
22
+ - name : Build with Gradle
23
+ run : ./gradlew clean agentJar
24
+ - name : Compute short SHA
25
+ id : sha
26
+ run : echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
27
+ - name : Upload artifacts
28
+ uses : actions/upload-artifact@master
29
+ with :
30
+ name : AddonPatcher-Agent-${{ steps.sha.outputs.short_sha }}
31
+ path : build/libs/*.jar
Original file line number Diff line number Diff line change
1
+ name : Build replacer jar
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout repo
14
+ uses : actions/checkout@v3
15
+ - name : Set up JDK 11
16
+ uses : actions/setup-java@v2
17
+ with :
18
+ java-version : 11
19
+ distribution : temurin
20
+ - name : Grant execute permission for gradlew
21
+ run : chmod +x gradlew
22
+ - name : Build with Gradle
23
+ run : ./gradlew clean replacerJar
24
+ - name : Compute short SHA
25
+ id : sha
26
+ run : echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
27
+ - name : Upload artifacts
28
+ uses : actions/upload-artifact@master
29
+ with :
30
+ name : AddonPatcher-Replacer-${{ steps.sha.outputs.short_sha }}
31
+ path : build/libs/*.jar
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ repositories {
26
26
dependencies {
27
27
// noinspection VulnerableLibrariesLocal
28
28
compileOnly ' org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
29
- shadow ' org.ow2.asm:asm:9.4 '
29
+ shadow ' org.ow2.asm:asm:9.7 '
30
30
}
31
31
32
32
compileJava {
@@ -107,4 +107,4 @@ task replacerJar(type: ShadowJar) {
107
107
' Agent-Class' : ' org.skriptlang.addonpatcher.variants.agent.Agent'
108
108
)
109
109
}
110
- }
110
+ }
You can’t perform that action at this time.
0 commit comments