Skip to content

Commit 6f6db96

Browse files
authored
Implement GitHub packages upload
Needs testing tho.
1 parent 97e9f33 commit 6f6db96

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

build.gradle

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,19 @@ publishing{
7272
artifact sourcesJar
7373
}
7474
}
75-
}
75+
repositories{
76+
maven{
77+
name = "GitHubPackages"
78+
url = uri("https://maven.pkg.github.com/botblock/JavaBotBlockAPI")
79+
credentials{
80+
username = "botblock"
81+
password = System.getenv("GITHUB_TOKEN")
82+
}
83+
}
84+
publications{
85+
gpr(MavenPublications){
86+
from(components.java)
87+
}
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)