diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 609a293..f6fb75b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,8 @@ jobs: - name: Release to github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + USERNAME: ${{ secrets.M2_USER }} + PASSWORD: ${{ secrets.M2_PASS }} # just use master RELEASE_TARGET: master - run: ./gradlew --no-daemon build githubRelease + run: ./gradlew --no-daemon build publish githubRelease -x test diff --git a/README.md b/README.md index 87f7682..080aba7 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,14 @@ If you need to add the source managers to your lavalink instance as well you can # Adding to lavalink -Latest version: ![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/DuncteBot/skybot-lavalink-plugin) +Latest version: ![Latest version][VERSION] Add the following to your lavalink configuration, make sure to replace `VERSION` with the latest version listed above (do not include the `v`). ```yml lavalink: plugins: - dependency: "com.dunctebot:skybot-lavalink-plugin:VERSION" - repository: "https://jitpack.io" + repository: "https://m2.duncte123.dev/releases" ``` Alternatively you can download the jar from the release on github and place that in your plugins folder @@ -42,4 +42,6 @@ plugins: pornhub: true # should be self-explanatory reddit: true # should be self-explanatory ocremix: true # www.ocremix.org -``` \ No newline at end of file +``` + +[VERSION]: https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fm2.duncte123.dev%2Freleases%2Fcom%2Fdunctebot%2Fskybot-lavalink-plugin%2Fmaven-metadata.xml \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 601e90c..c310b25 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ application { mainClass.set("org.springframework.boot.loader.JarLauncher") } -val pluginVersion = Version(1, 1, 3) +val pluginVersion = Version(1, 1, 4) group = "com.dunctebot" version = "$pluginVersion" @@ -25,7 +25,7 @@ val archivesBaseName = "skybot-lavalink-plugin" repositories { mavenCentral() mavenLocal() - maven("https://duncte123.jfrog.io/artifactory/maven") + maven("https://m2.duncte123.dev/releases") maven("https://m2.dv8tion.net/releases") maven("https://jitpack.io") jcenter() //koe :( @@ -45,8 +45,21 @@ tasks.getByName("test") { } publishing { + repositories { + maven { + name = "duncte123-m2" + url = uri("https://m2.duncte123.dev/releases") + credentials { + username = System.getenv("USERNAME") + password = System.getenv("PASSWORD") + } + authentication { + create("basic") + } + } + } publications { - create("maven") { + create("duncte123-m2") { groupId = "com.dunctebot" artifactId = archivesBaseName version = "$pluginVersion"