Skip to content

Commit

Permalink
Added java automatic release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Dec 22, 2024
1 parent 0a63b22 commit fcf3f2a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit fcf3f2a

Please sign in to comment.