From 91435233e89c1a9c9536ca1c0309aae3fc32ac66 Mon Sep 17 00:00:00 2001 From: tison Date: Thu, 14 Sep 2023 00:38:18 +0800 Subject: [PATCH] ci(bindings/java): release workflow always uses bash (#3056) --- .github/workflows/release_java.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_java.yml b/.github/workflows/release_java.yml index 4b9223f6ca9..fcb6bfe8e9b 100644 --- a/.github/workflows/release_java.yml +++ b/.github/workflows/release_java.yml @@ -62,8 +62,15 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Local staging working-directory: bindings/java + shell: bash run: | - ./mvnw -Papache-release package verify org.sonatype.plugins:nexus-staging-maven-plugin:deploy "-Djni.classifier=${{ matrix.classifier }}" -DskipTests=true -DaltStagingDirectory=local-staging -DskipRemoteStaging=true "-DserverId=apache.releases.https" "-DnexusUrl=https://repository.apache.org" + ./mvnw -Papache-release package verify org.sonatype.plugins:nexus-staging-maven-plugin:deploy \ + -DskipTests=true \ + -Djni.classifier=${{ matrix.classifier }} \ + -DaltStagingDirectory=local-staging \ + -DskipRemoteStaging=true \ + -DserverId=apache.releases.https \ + -DnexusUrl=https://repository.apache.org env: MAVEN_USERNAME: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }} MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }} @@ -124,13 +131,22 @@ jobs: path: ci-opendal - name: Merge staging repositories working-directory: ci-opendal - run: bash ./scripts/merge_local_staging.sh $LOCAL_STAGING_DIR/staging ~/windows-x86_64-local-staging/staging ~/linux-x86_64-local-staging/staging ~/osx-x86_64-local-staging/staging ~/osx-aarch_64-local-staging/staging + run: | + bash ./scripts/merge_local_staging.sh $LOCAL_STAGING_DIR/staging \ + ~/windows-x86_64-local-staging/staging \ + ~/linux-x86_64-local-staging/staging \ + ~/osx-x86_64-local-staging/staging \ + ~/osx-aarch_64-local-staging/staging - name: Deploy local staged artifacts if: ${{ github.event_name != 'pull_request' }} working-directory: bindings/java run: | - ./mvnw org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=$LOCAL_STAGING_DIR -DskipStagingRepositoryClose=true -DserverId=apache.releases.https -DnexusUrl=https://repository.apache.org + ./mvnw org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged \ + -DaltStagingDirectory=$LOCAL_STAGING_DIR \ + -DskipStagingRepositoryClose=true \ + -DserverId=apache.releases.https \ + -DnexusUrl=https://repository.apache.org env: MAVEN_USERNAME: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }} MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}