diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3ec5fd..2ae18e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,20 +11,28 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build & update version + run: mvn -B clean install --file pom.xml - name: GitHub Tag Name example run: | echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME" echo "Tag name from github.ref_name: ${{ github.ref_name }}" - #- name: Release - # uses: qcastel/github-actions-maven-release@v1.12.41 - # env: - # JAVA_HOME: /usr/lib/jvm/java-11-openjdk/ - # with: - # release-branch-name: "main" - # git-release-bot-name: "Benjamin Cavy" - # git-release-bot-email: "benjamin.cavy@gmail.com" - # maven-args: "-Dmaven.deploy.skip=true" - # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - # gpg-enabled: true - # gpg-key-id: ${{ secrets.GPG_KEY_ID }} - # gpg-key: ${{ secrets.GPG_KEY }} \ No newline at end of file + - name: Release + uses: qcastel/github-actions-maven-release@v1.12.41 + env: + JAVA_HOME: /usr/lib/jvm/java-11-openjdk/ + with: + release-branch-name: "main" + git-release-bot-name: "Benjamin Cavy" + git-release-bot-email: "benjamin.cavy@gmail.com" + maven-args: "-Dmaven.deploy.skip=true" + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + #gpg-enabled: true + #gpg-key-id: ${{ secrets.GPG_KEY_ID }} + #gpg-key: ${{ secrets.GPG_KEY }} \ No newline at end of file