You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/06/24 07:42:41 UTC
[incubator-opendal] branch fix-java-snapshot created (now de456ee28)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a change to branch fix-java-snapshot
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
at de456ee28 ci(fix): Load private key as base64
This branch includes the following new commits:
new de456ee28 ci(fix): Load private key as base64
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-opendal] 01/01: ci(fix): Load private key as base64
Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch fix-java-snapshot
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit de456ee28ce6b8e74a1134777990ee4df5e75804
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Sat Jun 24 15:42:19 2023 +0800
ci(fix): Load private key as base64
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.github/workflows/bindings_java.yml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/bindings_java.yml b/.github/workflows/bindings_java.yml
index fbcfd42e8..d8f960618 100644
--- a/.github/workflows/bindings_java.yml
+++ b/.github/workflows/bindings_java.yml
@@ -94,9 +94,15 @@ jobs:
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_PRIVATE_KEY_BASE64: op://services/maven/gpg_private_key
MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase
+ - name: Decode GPG private key
+ run: |
+ private_key=`echo "${{ env.MAVEN_GPG_PRIVATE_KEY_BASE64 }}" | base64 -d`
+ echo "::add-mask::${private_key}"
+ echo "MAVEN_GPG_PRIVATE_KEY=${private_key}" >> $GITHUB_ENV
+
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
@@ -134,9 +140,15 @@ jobs:
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_PRIVATE_KEY_BASE64: op://services/maven/gpg_private_key
MAVEN_GPG_PASSPHRASE: op://services/maven/gpg_passphrase
+ - name: Decode GPG private key
+ run: |
+ private_key=`echo "${{ env.MAVEN_GPG_PRIVATE_KEY_BASE64 }}" | base64 -d`
+ echo "::add-mask::${private_key}"
+ echo "MAVEN_GPG_PRIVATE_KEY=${private_key}" >> $GITHUB_ENV
+
- name: Set up JDK 8
uses: actions/setup-java@v3
with: