Skip to content

Commit 46c5450

Browse files
fix:
* GitHub action
1 parent 58f2a03 commit 46c5450

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build.gradle.kts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4+
id("maven-publish")
45
kotlin("jvm") version "1.6.21"
56
application
67
}
@@ -29,6 +30,25 @@ tasks.withType<Test> {
2930
useJUnitPlatform()
3031
}
3132

33+
publishing {
34+
repositories {
35+
maven {
36+
name = "GitHubPackages"
37+
url = uri("https://maven.pkg.github.com/PureFuncInc/emoji-jvm-string")
38+
credentials {
39+
username = "Pure-Func-Inc"
40+
password = System.getenv("GITHUB_PUBLISH_TOKEN")
41+
}
42+
}
43+
}
44+
45+
publications {
46+
create<MavenPublication>("maven") {
47+
from(components["java"])
48+
}
49+
}
50+
}
51+
3252
application {
3353
mainClass.set("net.purefunc.generate.MainKt")
3454
}

0 commit comments

Comments
 (0)