File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed
Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 55 types : [published]
66 branches :
77 - master
8-
98
109jobs :
11- build :
12-
10+ publish :
1311 runs-on : ubuntu-latest
14-
1512 steps :
1613 - uses : actions/checkout@v1
1714 - name : Set up JDK 1.8
1815 uses : actions/setup-java@v1
1916 with :
2017 java-version : 1.8
21- - name : Build with Gradle
18+ - name : Build and publish
2219 env :
2320 bintrayUser : ${{ secrets.bintrayUsername }}
2421 bintrayApiKey : ${{ secrets.bintrayApiKey }}
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2523 run : ./gradlew bintrayUpload
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments