From b04947586474d504de043571d3df0100def43072 Mon Sep 17 00:00:00 2001 From: reymondzzzz Date: Fri, 24 Nov 2023 13:11:23 +0300 Subject: [PATCH] update release action --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cabcef6..a9eab1db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,10 @@ jobs: GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} if [[ ${GIT_BRANCH} == "main" ]]; then echo "PUBLISH_CHANNEL=default" >> "$GITHUB_ENV" + echo "PUBLISH_EAP=0" >> "$GITHUB_ENV" else echo "PUBLISH_CHANNEL=eap" >> "$GITHUB_ENV" + echo "PUBLISH_EAP=1" >> "$GITHUB_ENV" fi # Free GitHub Actions Environment Disk Space @@ -124,7 +126,7 @@ jobs: env: PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} PUBLISH_CHANNEL: ${{ env.PUBLISH_CHANNEL }} - PUBLISH_EAP: 1 + PUBLISH_EAP: ${{ env.PUBLISH_EAP }} CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }} PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}