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