From eee7d7a1ed732e07a3377c7cc2edba3ee689090f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E5=98=89=E4=B9=90?= Date: Mon, 22 Dec 2025 21:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Ohos=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E5=8F=91=E5=B8=83=E6=AD=A5=E9=AA=A4=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=20(#1695)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ohos.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ohos.yml b/.github/workflows/ohos.yml index 4342bafa..054165c9 100644 --- a/.github/workflows/ohos.yml +++ b/.github/workflows/ohos.yml @@ -129,6 +129,7 @@ jobs: OHPM_PUBLISH_CODE: ${{ secrets.OHPM_PUBLISH_CODE }} OHPM_PRIVATE_KEY: ${{ secrets.OHPM_PRIVATE_KEY }} OHPM_KEY_PASSPHRASE: ${{ secrets.OHPM_KEY_PASSPHRASE }} + if: ${{ env.OHPM_PUBLISH_CODE != '' }} run: | ohpm config set publish_id "$OHPM_PUBLISH_CODE" ohpm config set publish_registry https://ohpm.openharmony.cn/ohpm @@ -146,6 +147,9 @@ jobs: - name: Publish To Private Ohpm working-directory: ./easytier-contrib/easytier-ohrs + env: + OHPM_PUBLISH_CODE: ${{ secrets.OHPM_PUBLISH_CODE }} + if: ${{ env.OHPM_PUBLISH_CODE != '' }} run: | printf '%s' "${{ secrets.CODEARTS_PRIVATE_OHPM }}" > ~/.ohpm/.ohpmrc ohpm config set strict_ssl false