From f01e429f276556a840de086b8cd88c6e56432c1d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Date: Wed, 20 Sep 2023 17:15:21 -0700 Subject: [PATCH] Update deploy.yaml to last version --- .github/workflows/deploy.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8c7b941..1ed3d1b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,4 +1,3 @@ -# see https://github.com/camunda-community-hub/community-action-maven-release name: Deploy artifacts with Maven on: push: @@ -9,34 +8,32 @@ jobs: publish: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - name: Cache - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + - name: Checks out code + uses: actions/checkout@v3 + - name: Set up Java environment - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: - java-version: 17 + java-version: 11 + distribution: zulu + cache: maven gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_SEC }} gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE + - name: Deploy SNAPSHOT / Release uses: camunda-community-hub/community-action-maven-release@v1 with: release-version: ${{ github.event.release.tag_name }} - release-profile: community-action-maven-release nexus-usr: ${{ secrets.NEXUS_USR }} nexus-psw: ${{ secrets.NEXUS_PSW }} maven-usr: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_USR }} maven-psw: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_PSW }} maven-url: oss.sonatype.org maven-gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }} + maven-auto-release-after-close: true github-token: ${{ secrets.GITHUB_TOKEN }} - # maven-additional-options: -source 17 id: release + - if: github.event.release name: Attach artifacts to GitHub Release (Release only) uses: actions/upload-release-asset@v1