Update main.yml

This commit is contained in:
Muhammed Kalkan 2023-05-29 15:34:16 +03:00 committed by GitHub
parent 0d68d0275b
commit bb3e3245bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -21,9 +21,7 @@ jobs:
- name: Export version to variable
run: |
export LENS_VERSION=$(cat version)
echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV
export DOWNLOAD_ALL_ARCHITECTURES="true"
echo "DOWNLOAD_ALL_ARCHITECTURES=$DOWNLOAD_ALL_ARCHITECTURES" >> $GITHUB_ENV
echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-node@v3
with:
@ -43,9 +41,8 @@ jobs:
mkdir releasefiles
if [ "$RUNNER_OS" == "Windows" ]; then
choco install visualstudio2019buildtools visualstudio2019-workload-vctools
echo "DOWNLOAD_ALL_ARCHITECTURES=" >> $GITHUB_ENV
fi
if [ "$RUNNER_OS" == "macOS" ]; then
if [ "$RUNNER_OS" == "macOS" ]; then
if [ "${CSC_LINK}" = "" ]; then
unset CSC_LINK
fi
@ -53,6 +50,7 @@ jobs:
if [ "${CSC_KEY_PASSWORD}" = "" ]; then
unset CSC_KEY_PASSWORD
fi
echo "DOWNLOAD_ALL_ARCHITECTURES=true" >> $GITHUB_ENV
yarn run all:install
yarn run build
yarn run build:app
@ -71,6 +69,7 @@ jobs:
fi
done
elif [ "$RUNNER_OS" == "Linux" ]; then
echo "DOWNLOAD_ALL_ARCHITECTURES=true" >> $GITHUB_ENV
yarn run all:install
yarn run build
yarn run build:app