From 252163ba46d503ff5ff48db5dfdf695cc1348b7e Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 10 Aug 2023 19:39:12 +0100 Subject: [PATCH] Added .github --- .github/CODEOWNERS | 1 + .github/ISSUE_TEMPLATE/config.yml | 5 ++++ .github/ISSUE_TEMPLATE/report-a-bug.md | 11 +++++++++ .github/workflows/publish-release.yml | 33 ++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/report-a-bug.md create mode 100644 .github/workflows/publish-release.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..87fb27a --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @WillFP 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 }}