From 08ce9e663ede4e9b46865af9e025f9f28dea6394 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 28 Aug 2023 15:00:06 +0100 Subject: [PATCH] Added workflows --- .github/workflows/publish-release.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/publish-release.yml 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 }}