From 2ea0100dec3de1869ace3167abb708c9456fb723 Mon Sep 17 00:00:00 2001 From: Filip Date: Fri, 16 Feb 2024 22:56:38 +0100 Subject: [PATCH] Update maven-publish.yml --- .github/workflows/maven-publish.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 5ef9cf8..68ed412 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -13,6 +13,7 @@ on: jobs: publish: runs-on: ubuntu-latest + environment: RELEASE steps: - uses: actions/checkout@v4 - name: Set up Maven Central Repository @@ -23,25 +24,25 @@ jobs: java-package: 'jdk' cache: 'maven' server-id: ossrh - - name: Configure Git User - run: | - git config user.email "actions@github.com" - git config user.name "GitHub Actions" - echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV +# - name: Configure Git User +# run: | +# git config user.email "actions@github.com" +# git config user.name "GitHub Actions" +# echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Import GPG Key uses: crazy-max/ghaction-import-gpg@v5.0.0 with: gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - - name: Verify Whether a Release is Ready - id: release - shell: bash - run: | - if [ "${{ github.event.inputs.releaseVersion }}" != "" ]; then - echo "auto_release=true" >> $GITHUB_ENV - else - echo "auto_release=false" >> $GITHUB_ENV - fi + # - name: Verify Whether a Release is Ready + # id: release + # shell: bash + # run: | + # if [ "${{ github.event.inputs.releaseVersion }}" != "" ]; then + # echo "auto_release=true" >> $GITHUB_ENV + # else + # echo "auto_release=false" >> $GITHUB_ENV + # fi - name: Publish package run: mvn --batch-mode -Pmaven-central -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} deploy # -DreleaseVersion=${{ github.event.inputs.releaseVersion }} \