Skip to content

Commit 53a64a1

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 847b654 + 6f6db96 commit 53a64a1

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ on:
55
types: [published]
66
branches:
77
- master
8-
98

109
jobs:
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

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)