File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1515 uses : actions/setup-java@v1
1616 with :
1717 java-version : 1.8
18- - name : Build and publish (Bintray)
18+ - name : Publish (Bintray)
1919 env :
2020 bintrayUser : ${{ secrets.bintrayUsername }}
2121 bintrayApiKey : ${{ secrets.bintrayApiKey }}
2222 run : ./gradlew bintrayUpload
23+ - name : Publish (GitHub Packages)
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ run : ./gradlew publish
Original file line number Diff line number Diff line change @@ -73,4 +73,19 @@ publishing{
7373 artifact sourcesJar
7474 }
7575 }
76+ repositories{
77+ maven{
78+ name = " GitHubPackages"
79+ url = uri(" https://maven.pkg.github.com/botblock/JavaBotBlockAPI" )
80+ credentials{
81+ username = " botblock"
82+ password = System . getenv(" GITHUB_TOKEN" )
83+ }
84+ }
85+ publications{
86+ gpr(MavenPublication ){
87+ from(components. java)
88+ }
89+ }
90+ }
7691}
You can’t perform that action at this time.
0 commit comments