Skip to content

Commit 014da82

Browse files
authored
Merge pull request #27 from botblock/publication/github-packages
Re-implementing GitHub Packages
2 parents 080409c + def36c2 commit 014da82

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/gradle.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ jobs:
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

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)