Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Nov 24, 2023
1 parent 3552f85 commit da3e0d5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit da3e0d5

Please sign in to comment.