File tree Expand file tree Collapse file tree 2 files changed +105
-0
lines changed Expand file tree Collapse file tree 2 files changed +105
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Server builds
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' **'
7
+ tags :
8
+ - ' **'
9
+ pull_request :
10
+ branches :
11
+ - ' **'
12
+ workflow_dispatch :
13
+
14
+ jobs :
15
+ create-release :
16
+ runs-on : ubuntu-latest
17
+ if : github.ref_type == 'tag'
18
+ # This permission is needed to push a release (and/or tags)
19
+ permissions :
20
+ contents : write # nessesary for tag creation and release creation
21
+ actions : write # nessesary for cache deletion
22
+ packages : write # packages write
23
+ steps :
24
+ - name : Checkout repository
25
+ uses : actions/checkout@v3
26
+ - name : Setup Java 17
27
+ uses : actions/setup-java@v3
28
+ with :
29
+ java-version : ' 17'
30
+ distribution : ' temurin'
31
+ - name : Setup Gradle
32
+ uses : gradle/gradle-build-action@v2.9.0
33
+ - name : Publish Ketting
34
+ run : ./gradlew publish
35
+ env :
36
+ KETTINGUSERNAME : ${{ secrets.KETTINGUSERNAME }}
37
+ KETTINGPASSWORD : ${{ secrets.KETTINGPASSWORD }}
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+
41
+ build :
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - name : Checkout repository
45
+ uses : actions/checkout@v3
46
+ - name : Setup Java 17
47
+ uses : actions/setup-java@v3
48
+ with :
49
+ java-version : ' 17'
50
+ distribution : ' temurin'
51
+ - name : Validate Gradle wrapper
52
+ uses : gradle/wrapper-validation-action@v1
53
+ - name : Setup Gradle
54
+ uses : gradle/gradle-build-action@v2
55
+ - name : Build
56
+ run : ./gradlew setup build kettingJar
Original file line number Diff line number Diff line change
1
+ import org.gradle.api.publish.maven.MavenPublication
2
+
1
3
plugins {
2
4
id ' eclipse'
3
5
id ' idea'
@@ -32,6 +34,53 @@ publishing {
32
34
}
33
35
}
34
36
37
+
38
+ publishing {
39
+ publications. register(' mavenJava' , MavenPublication ). configure {
40
+ from components. java
41
+
42
+ artifactId = project. name
43
+ pom {
44
+ name = project. name
45
+ description = " A custom Mixin plugin to allow some more customizability"
46
+ url = " https://github.com/kettingpowered/KettingMixinExtras"
47
+ developers {
48
+ // developer {
49
+ // id = "justred23"
50
+ // name = "JustRed23"
51
+ // }
52
+ developer {
53
+ id = " c0d3m4513r"
54
+ name = " C0D3 M4513R"
55
+ }
56
+ }
57
+ scm {
58
+ connection = " scm:git:https://github.com/kettingpowered/KettingMixinExtras.git"
59
+ url = " https://github.com/kettingpowered/KettingMixinExtras"
60
+ }
61
+ }
62
+ }
63
+
64
+ repositories {
65
+ // maven {
66
+ // name = "GitHubPackages"
67
+ // url = uri("https://maven.pkg.github.com/kettingpowered/Ketting-1-21-x")
68
+ // credentials {
69
+ // username = System.getenv("GITHUB_ACTOR")
70
+ // password = System.getenv("GITHUB_TOKEN")
71
+ // }
72
+ // }
73
+ maven {
74
+ name = ' kettingRepo'
75
+ credentials {
76
+ username = System . getenv(" KETTINGUSERNAME" )
77
+ password = System . getenv(" KETTINGPASSWORD" )
78
+ }
79
+ url = " https://reposilite.c0d3m4513r.com/Ketting/"
80
+ }
81
+ }
82
+ }
83
+
35
84
tasks. withType(JavaCompile ). configureEach {
36
85
options. encoding = ' UTF-8' // Use the UTF-8 charset for Java compilation
37
86
}
You can’t perform that action at this time.
0 commit comments