Skip to content

Commit

Permalink
Publish to own repo
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Jan 25, 2022
1 parent 0f46b5a commit 240e5d7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,4 +42,6 @@ plugins:
pornhub: true # should be self-explanatory
reddit: true # should be self-explanatory
ocremix: true # www.ocremix.org
```
```
[VERSION]: https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fm2.duncte123.dev%2Freleases%2Fcom%2Fdunctebot%2Fskybot-lavalink-plugin%2Fmaven-metadata.xml
19 changes: 16 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 :(
Expand All @@ -45,8 +45,21 @@ tasks.getByName<Test>("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<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
create<MavenPublication>("duncte123-m2") {
groupId = "com.dunctebot"
artifactId = archivesBaseName
version = "$pluginVersion"
Expand Down

0 comments on commit 240e5d7

Please sign in to comment.