diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..cea14e5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Discord + url: https://discord.gg/ZcwpSsE/ + about: Issues have moved to Discord, please join the server to get help! diff --git a/.github/ISSUE_TEMPLATE/report-a-bug.md b/.github/ISSUE_TEMPLATE/report-a-bug.md new file mode 100644 index 0000000..db998f9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/report-a-bug.md @@ -0,0 +1,11 @@ +--- +name: Report a Bug +about: Report an issue with the plugin +title: '' +labels: bug +assignees: '' +--- + +# Please report bugs on the discord! + +[Join by clicking here](https://discord.gg/ZcwpSsE/) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml new file mode 100644 index 0000000..4a1a7c3 --- /dev/null +++ b/.github/workflows/publish-release.yml @@ -0,0 +1,33 @@ +name: Publish Packages +on: + workflow_dispatch: + release: + types: [ created ] + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + + - name: Checkout latest code + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 17 + + - name: Change wrapper permissions + run: chmod +x ./gradlew + + - name: Publish package + uses: gradle/gradle-build-action@v2 + with: + arguments: publish + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} diff --git a/build.gradle.kts b/build.gradle.kts index f540da1..4e83870 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { `maven-publish` kotlin("jvm") version "1.7.10" id("com.github.johnrengelman.shadow") version "8.0.0" - id("com.willfp.libreforge.gradle") version "1.0.0" + id("com.willfp.libreforge-gradle-plugin") version "1.0.0" } group = "com.willfp" @@ -32,6 +32,7 @@ allprojects { mavenCentral() maven("https://repo.papermc.io/repository/maven-public/") + maven("https://repo.auxilor.io/repository/maven-public/") maven("https://jitpack.io") } diff --git a/eco-core/core-plugin/build.gradle.kts b/eco-core/core-plugin/build.gradle.kts index 450a31e..874330a 100644 --- a/eco-core/core-plugin/build.gradle.kts +++ b/eco-core/core-plugin/build.gradle.kts @@ -12,6 +12,19 @@ publishing { artifactId = rootProject.name } } + + publishing { + repositories { + maven { + name = "auxilor" + url = uri("https://repo.auxilor.io/repository/maven-releases/") + credentials { + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } + } + } + } } tasks { diff --git a/gradle.properties b/gradle.properties index c0925a6..05a0f73 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ #libreforge-updater -#Tue Mar 28 21:40:33 BST 2023 +#Tue Mar 28 22:06:39 BST 2023 kotlin.code.style=official libreforge-version=4.0.0 version=5.0.0 diff --git a/settings.gradle.kts b/settings.gradle.kts index c3f2a51..880ecf6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -3,7 +3,7 @@ pluginManagement { gradlePluginPortal() mavenLocal() maven("https://repo.jpenilla.xyz/snapshots/") - maven("https://jitpack.io") + maven("https://repo.auxilor.io/repository/maven-public/") } }