Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 54a53c2

Browse files
committed
Migrate to GitHub packages
1 parent 85da505 commit 54a53c2

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343
with:
4444
arguments: 'build --stacktrace'
4545

46-
- name: 'Publish KGL to BinTray'
46+
- name: 'Publish KGL'
4747
uses: eskatos/gradle-command-action@v1
4848
with:
4949
arguments: 'smartPublish --stacktrace'
5050
if: startsWith(github.ref, 'refs/tags/')
5151
env:
52-
BINTRAY_API_KEY: ${{ secrets.bintray_api_key }}
53-
BINTRAY_USER: ${{ secrets.bintray_user }}
52+
GITHUB_USER: ${{ github.actor }}
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ You can find some kgl-vulkan samples [here](https://github.com/Dominaezzz/kgl-vu
1818
## Usage
1919
```kotlin
2020
repositories {
21-
maven("https://dl.bintray.com/dominaezzz/kotlin-native")
22-
jcenter()
21+
maven("https://maven.pkg.github.com/Dominaezzz/matrix-kt") {
22+
credentials {
23+
username = System.getenv("GITHUB_USER") // Your GitHub username.
24+
password = System.getenv("GITHUB_TOKEN") // A GitHub token with `read:packages`.
25+
}
26+
}
2327
}
2428

2529
dependencies {

build.gradle.kts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,18 @@ subprojects {
6666

6767
plugins.withId("maven-publish") {
6868
configure<PublishingExtension> {
69-
val vcs: String by project
70-
val bintrayOrg: String by project
71-
val bintrayRepository: String by project
72-
7369
repositories {
74-
maven("https://api.bintray.com/maven/$bintrayOrg/$bintrayRepository/kgl/;publish=0;override=0") {
75-
name = "bintray"
70+
maven("https://maven.pkg.github.com/Dominaezzz/${rootProject.name}") {
71+
name = "GitHubPackages"
7672
credentials {
77-
username = System.getenv("BINTRAY_USER")
78-
password = System.getenv("BINTRAY_API_KEY")
73+
username = System.getenv("GITHUB_USER")
74+
password = System.getenv("GITHUB_TOKEN")
7975
}
8076
}
8177
}
8278

8379
publications.withType<MavenPublication> {
80+
val vcs = "https://github.com/Dominaezzz/kgl"
8481
pom {
8582
name.set(project.name)
8683
description.set(project.description)

gradle.properties

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
vcs=https://github.com/Dominaezzz/kgl
2-
bintrayOrg=dominaezzz
3-
bintrayRepository=kotlin-native
4-
bintrayPackage=kgl
5-
61
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError
7-
8-
# This a workaround for https://github.com/gradle/gradle/issues/11412
9-
systemProp.org.gradle.internal.publish.checksums.insecure=true

0 commit comments

Comments
 (0)