diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 69e1f24..b9e4aed 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -35,3 +35,23 @@ jobs: - name: Test with Gradle Wrapper run: ./gradlew test + + release: + + name: Setup Environment, Build JAR and Release Project + runs-on: ubuntu-latest + if: "startsWith(github.event.head_commit.message, '!release')" + + permissions: + contents: write + + steps: + - name: Automatic Release + uses: Fulminazzo/java-automatic-release@v3 + with: + java-version: 17 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPOSITORY_NAME: ${{ github.event.repository.name }} + # Message specified in the commit + COMMIT_MESSAGE: ${{ github.event.head_commit.message }}