From 8f2138df4a66f5ee1074c6ce2de3dd8b9b153af0 Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 24 Jun 2023 09:51:27 +0800 Subject: [PATCH 1/5] ci(bindings/java): auto release snapshot Signed-off-by: tison --- .github/workflows/bindings_java_snapshot.yml | 130 +++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 .github/workflows/bindings_java_snapshot.yml diff --git a/.github/workflows/bindings_java_snapshot.yml b/.github/workflows/bindings_java_snapshot.yml new file mode 100644 index 000000000000..99273f22c10f --- /dev/null +++ b/.github/workflows/bindings_java_snapshot.yml @@ -0,0 +1,130 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Deploy OpenDAL Java Snapshot + +on: + push: + branches: + - main + schedule: + - cron: '30 1 * * 1' + workflow_dispatch: + +jobs: + stage-snapshot: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + classifier: linux-x86_64 + - os: windows-latest + classifier: windows-x86_64 + - os: macos-latest + classifier: osx-x86_64 + - os: macos-latest + classifier: osx-aarch_64 + steps: + - uses: actions/checkout@v3 + with: + repository: apache/incubator-opendal + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '8' + cache: 'maven' + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Local staging + working-directory: bindings/java + run: mvn -Papache-release package verify org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DjniClassifier=${{ matrix.classifier }} -DskipTests=true -DaltStagingDirectory=local-staging -DskipRemoteStaging=true + env: + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + - name: Upload local staging directory + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.classifier }}-local-staging + path: bindings/java/local-staging + if-no-files-found: error + + deploy-staged-snapshots: + runs-on: ubuntu-latest + needs: [stage-snapshot] + steps: + - uses: actions/checkout@v3 + with: + repository: apache/incubator-opendal + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '8' + cache: 'maven' + server-id: apache.snapshots.https + server-username: MAVEN_USERNAME + server-password: MAVEN_CENTRAL_TOKEN + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Prepare enviroment variables + run: echo "LOCAL_STAGING_DIR=$HOME/local-staging" >> $GITHUB_ENV + + - name: Download windows staging directory + uses: actions/download-artifact@v3 + with: + name: windows-x86_64-local-staging + path: ~/windows-x86_64-local-staging + - name: Download linux staging directory + uses: actions/download-artifact@v3 + with: + name: linux-x86_64-local-staging + path: ~/linux-x86_64-local-staging + - name: Download darwin staging directory + uses: actions/download-artifact@v3 + with: + name: osx-x86_64-local-staging + path: ~/osx-x86_64-local-staging + - name: Download darwin (aarch64) staging directory + uses: actions/download-artifact@v3 + with: + name: osx-aarch_64-local-staging + path: ~/osx-aarch_64-local-staging + + - name: Merge staging repositories + run: | + mkdir -p ~/local-staging/deferred + cat ~/windows-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/windows-x86_64-local-staging/deferred/* ~/local-staging/deferred/ + cat ~/linux-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/linux-x86_64-local-staging/deferred/* ~/local-staging/deferred/ + cat ~/osx-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/osx-x86_64-local-staging/deferred/* ~/local-staging/deferred/ + cat ~/osx-aarch_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/osx-aarch_64-local-staging/deferred/* ~/local-staging/deferred/ + - name: Deploy local staged artifacts + if: ${{ github.event_name != 'pull_request' }} + working-directory: bindings/java + run: mvn org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=$LOCAL_STAGING_DIR + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} From 4bf5dda23569d8842fd02ade66711662e2274b5a Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 24 Jun 2023 09:53:19 +0800 Subject: [PATCH 2/5] use org-wise secrets Signed-off-by: tison --- .github/workflows/bindings_java_snapshot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bindings_java_snapshot.yml b/.github/workflows/bindings_java_snapshot.yml index 99273f22c10f..f1bb865abd03 100644 --- a/.github/workflows/bindings_java_snapshot.yml +++ b/.github/workflows/bindings_java_snapshot.yml @@ -125,6 +125,6 @@ jobs: working-directory: bindings/java run: mvn org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=$LOCAL_STAGING_DIR env: - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} + MAVEN_USERNAME: ${{ secrets.NEXUS_USER }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PW }} MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} From cca7524bcf507f5d6665f93066d56f72281cbd64 Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 24 Jun 2023 10:00:13 +0800 Subject: [PATCH 3/5] concrete triggers Signed-off-by: tison --- .github/workflows/bindings_java_snapshot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/bindings_java_snapshot.yml b/.github/workflows/bindings_java_snapshot.yml index f1bb865abd03..7ab7ee6e24c7 100644 --- a/.github/workflows/bindings_java_snapshot.yml +++ b/.github/workflows/bindings_java_snapshot.yml @@ -21,6 +21,17 @@ on: push: branches: - main + paths: + - "core/**" + - "bindings/java/**" + - ".github/workflows/bindings_java.yml" + pull_request: + branches: + - main + paths: + - "core/**" + - "bindings/java/**" + - ".github/workflows/bindings_java.yml" schedule: - cron: '30 1 * * 1' workflow_dispatch: From c502dd0ada72e389cf7f1ce53d8c0cfef32b7ca0 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Sat, 24 Jun 2023 14:39:10 +0800 Subject: [PATCH 4/5] Load from 1password Signed-off-by: Xuanwo --- .github/workflows/bindings_java_snapshot.yml | 42 +++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/workflows/bindings_java_snapshot.yml b/.github/workflows/bindings_java_snapshot.yml index 7ab7ee6e24c7..4002f9291534 100644 --- a/.github/workflows/bindings_java_snapshot.yml +++ b/.github/workflows/bindings_java_snapshot.yml @@ -25,13 +25,6 @@ on: - "core/**" - "bindings/java/**" - ".github/workflows/bindings_java.yml" - pull_request: - branches: - - main - paths: - - "core/**" - - "bindings/java/**" - - ".github/workflows/bindings_java.yml" schedule: - cron: '30 1 * * 1' workflow_dispatch: @@ -52,24 +45,34 @@ jobs: classifier: osx-aarch_64 steps: - uses: actions/checkout@v3 + + - name: Load secret + id: op-load-secret + uses: 1password/load-secrets-action@v1 with: - repository: apache/incubator-opendal + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + MAVEN_GPG_PRIVATE_KEY: op://services/maven/gpg_private_key + MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase + - name: Set up JDK 8 uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '8' cache: 'maven' - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE + gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ env.MAVEN_GPG_PASSPHRASE }} - uses: actions/setup-python@v4 with: python-version: '3.10' + - name: Local staging working-directory: bindings/java run: mvn -Papache-release package verify org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DjniClassifier=${{ matrix.classifier }} -DskipTests=true -DaltStagingDirectory=local-staging -DskipRemoteStaging=true env: - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + MAVEN_GPG_PASSPHRASE: ${{ env.MAVEN_GPG_PASSPHRASE }} - name: Upload local staging directory uses: actions/upload-artifact@v3 with: @@ -82,8 +85,16 @@ jobs: needs: [stage-snapshot] steps: - uses: actions/checkout@v3 + - name: Load secret + id: op-load-secret + uses: 1password/load-secrets-action@v1 with: - repository: apache/incubator-opendal + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + MAVEN_GPG_PRIVATE_KEY: op://services/maven/gpg_private_key + MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase + - name: Set up JDK 8 uses: actions/setup-java@v3 with: @@ -93,8 +104,8 @@ jobs: server-id: apache.snapshots.https server-username: MAVEN_USERNAME server-password: MAVEN_CENTRAL_TOKEN - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE + gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ env.MAVEN_GPG_PASSPHRASE }} - name: Prepare enviroment variables run: echo "LOCAL_STAGING_DIR=$HOME/local-staging" >> $GITHUB_ENV @@ -131,6 +142,7 @@ jobs: cp -r ~/osx-x86_64-local-staging/deferred/* ~/local-staging/deferred/ cat ~/osx-aarch_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index cp -r ~/osx-aarch_64-local-staging/deferred/* ~/local-staging/deferred/ + - name: Deploy local staged artifacts if: ${{ github.event_name != 'pull_request' }} working-directory: bindings/java @@ -138,4 +150,4 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.NEXUS_USER }} MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PW }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + MAVEN_GPG_PASSPHRASE: ${{ env.MAVEN_GPG_PASSPHRASE }} From 26290e8b5186b0eb84643db5dfa28fea65035e74 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Sat, 24 Jun 2023 14:40:52 +0800 Subject: [PATCH 5/5] Merge into the same file Signed-off-by: Xuanwo --- .github/workflows/bindings_java.yml | 126 +++++++++++++++ .github/workflows/bindings_java_snapshot.yml | 153 ------------------- 2 files changed, 126 insertions(+), 153 deletions(-) delete mode 100644 .github/workflows/bindings_java_snapshot.yml diff --git a/.github/workflows/bindings_java.yml b/.github/workflows/bindings_java.yml index 07bc9271ed91..fbcfd42e8ac0 100644 --- a/.github/workflows/bindings_java.yml +++ b/.github/workflows/bindings_java.yml @@ -30,6 +30,8 @@ on: - "core/**" - "bindings/java/**" - ".github/workflows/bindings_java.yml" + schedule: + - cron: '30 1 * * 1' workflow_dispatch: concurrency: @@ -67,3 +69,127 @@ jobs: - name: Build and test working-directory: bindings/java run: mvn clean verify + + stage-snapshot: + runs-on: ${{ matrix.os }} + if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork + strategy: + matrix: + include: + - os: ubuntu-latest + classifier: linux-x86_64 + - os: windows-latest + classifier: windows-x86_64 + - os: macos-latest + classifier: osx-x86_64 + - os: macos-latest + classifier: osx-aarch_64 + steps: + - uses: actions/checkout@v3 + + - name: Load secret + id: op-load-secret + uses: 1password/load-secrets-action@v1 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + MAVEN_GPG_PRIVATE_KEY: op://services/maven/gpg_private_key + MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase + + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '8' + cache: 'maven' + gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ env.MAVEN_GPG_PASSPHRASE }} + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Local staging + working-directory: bindings/java + run: mvn -Papache-release package verify org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DjniClassifier=${{ matrix.classifier }} -DskipTests=true -DaltStagingDirectory=local-staging -DskipRemoteStaging=true + env: + MAVEN_GPG_PASSPHRASE: ${{ env.MAVEN_GPG_PASSPHRASE }} + - name: Upload local staging directory + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.classifier }}-local-staging + path: bindings/java/local-staging + if-no-files-found: error + + deploy-snapshots: + runs-on: ubuntu-latest + if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork + needs: [stage-snapshot] + steps: + - uses: actions/checkout@v3 + - name: Load secret + id: op-load-secret + uses: 1password/load-secrets-action@v1 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + MAVEN_GPG_PRIVATE_KEY: op://services/maven/gpg_private_key + MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase + + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '8' + cache: 'maven' + server-id: apache.snapshots.https + server-username: MAVEN_USERNAME + server-password: MAVEN_CENTRAL_TOKEN + gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ env.MAVEN_GPG_PASSPHRASE }} + + - name: Prepare enviroment variables + run: echo "LOCAL_STAGING_DIR=$HOME/local-staging" >> $GITHUB_ENV + + - name: Download windows staging directory + uses: actions/download-artifact@v3 + with: + name: windows-x86_64-local-staging + path: ~/windows-x86_64-local-staging + - name: Download linux staging directory + uses: actions/download-artifact@v3 + with: + name: linux-x86_64-local-staging + path: ~/linux-x86_64-local-staging + - name: Download darwin staging directory + uses: actions/download-artifact@v3 + with: + name: osx-x86_64-local-staging + path: ~/osx-x86_64-local-staging + - name: Download darwin (aarch64) staging directory + uses: actions/download-artifact@v3 + with: + name: osx-aarch_64-local-staging + path: ~/osx-aarch_64-local-staging + + - name: Merge staging repositories + run: | + mkdir -p ~/local-staging/deferred + cat ~/windows-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/windows-x86_64-local-staging/deferred/* ~/local-staging/deferred/ + cat ~/linux-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/linux-x86_64-local-staging/deferred/* ~/local-staging/deferred/ + cat ~/osx-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/osx-x86_64-local-staging/deferred/* ~/local-staging/deferred/ + cat ~/osx-aarch_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index + cp -r ~/osx-aarch_64-local-staging/deferred/* ~/local-staging/deferred/ + + - name: Deploy local staged artifacts + if: ${{ github.event_name != 'pull_request' }} + working-directory: bindings/java + run: mvn org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=$LOCAL_STAGING_DIR + env: + MAVEN_USERNAME: ${{ secrets.NEXUS_USER }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PW }} + MAVEN_GPG_PASSPHRASE: ${{ env.MAVEN_GPG_PASSPHRASE }} diff --git a/.github/workflows/bindings_java_snapshot.yml b/.github/workflows/bindings_java_snapshot.yml deleted file mode 100644 index 4002f9291534..000000000000 --- a/.github/workflows/bindings_java_snapshot.yml +++ /dev/null @@ -1,153 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -name: Deploy OpenDAL Java Snapshot - -on: - push: - branches: - - main - paths: - - "core/**" - - "bindings/java/**" - - ".github/workflows/bindings_java.yml" - schedule: - - cron: '30 1 * * 1' - workflow_dispatch: - -jobs: - stage-snapshot: - runs-on: ${{ matrix.os }} - strategy: - matrix: - include: - - os: ubuntu-latest - classifier: linux-x86_64 - - os: windows-latest - classifier: windows-x86_64 - - os: macos-latest - classifier: osx-x86_64 - - os: macos-latest - classifier: osx-aarch_64 - steps: - - uses: actions/checkout@v3 - - - name: Load secret - id: op-load-secret - uses: 1password/load-secrets-action@v1 - with: - export-env: true - env: - OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} - MAVEN_GPG_PRIVATE_KEY: op://services/maven/gpg_private_key - MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase - - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '8' - cache: 'maven' - gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ env.MAVEN_GPG_PASSPHRASE }} - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - - name: Local staging - working-directory: bindings/java - run: mvn -Papache-release package verify org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DjniClassifier=${{ matrix.classifier }} -DskipTests=true -DaltStagingDirectory=local-staging -DskipRemoteStaging=true - env: - MAVEN_GPG_PASSPHRASE: ${{ env.MAVEN_GPG_PASSPHRASE }} - - name: Upload local staging directory - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.classifier }}-local-staging - path: bindings/java/local-staging - if-no-files-found: error - - deploy-staged-snapshots: - runs-on: ubuntu-latest - needs: [stage-snapshot] - steps: - - uses: actions/checkout@v3 - - name: Load secret - id: op-load-secret - uses: 1password/load-secrets-action@v1 - with: - export-env: true - env: - OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} - MAVEN_GPG_PRIVATE_KEY: op://services/maven/gpg_private_key - MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase - - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '8' - cache: 'maven' - server-id: apache.snapshots.https - server-username: MAVEN_USERNAME - server-password: MAVEN_CENTRAL_TOKEN - gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ env.MAVEN_GPG_PASSPHRASE }} - - - name: Prepare enviroment variables - run: echo "LOCAL_STAGING_DIR=$HOME/local-staging" >> $GITHUB_ENV - - - name: Download windows staging directory - uses: actions/download-artifact@v3 - with: - name: windows-x86_64-local-staging - path: ~/windows-x86_64-local-staging - - name: Download linux staging directory - uses: actions/download-artifact@v3 - with: - name: linux-x86_64-local-staging - path: ~/linux-x86_64-local-staging - - name: Download darwin staging directory - uses: actions/download-artifact@v3 - with: - name: osx-x86_64-local-staging - path: ~/osx-x86_64-local-staging - - name: Download darwin (aarch64) staging directory - uses: actions/download-artifact@v3 - with: - name: osx-aarch_64-local-staging - path: ~/osx-aarch_64-local-staging - - - name: Merge staging repositories - run: | - mkdir -p ~/local-staging/deferred - cat ~/windows-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index - cp -r ~/windows-x86_64-local-staging/deferred/* ~/local-staging/deferred/ - cat ~/linux-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index - cp -r ~/linux-x86_64-local-staging/deferred/* ~/local-staging/deferred/ - cat ~/osx-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index - cp -r ~/osx-x86_64-local-staging/deferred/* ~/local-staging/deferred/ - cat ~/osx-aarch_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index - cp -r ~/osx-aarch_64-local-staging/deferred/* ~/local-staging/deferred/ - - - name: Deploy local staged artifacts - if: ${{ github.event_name != 'pull_request' }} - working-directory: bindings/java - run: mvn org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=$LOCAL_STAGING_DIR - env: - MAVEN_USERNAME: ${{ secrets.NEXUS_USER }} - MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PW }} - MAVEN_GPG_PASSPHRASE: ${{ env.MAVEN_GPG_PASSPHRASE }}