From da3e0d56b5d45e24a4467feeee1de8d880ab585d 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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cabcef6..bbdc910e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,19 @@ 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 + - name: test + shell: bash + run: | + echo ${{ env.PUBLISH_CHANNEL }} + echo ${{ env.PUBLISH_EAP }} + exit 1 + # Free GitHub Actions Environment Disk Space - name: Maximize Build Space run: | @@ -124,7 +133,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 }}