Skip to content

Commit

Permalink
chore: fix env var detection when running build
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed May 10, 2023
1 parent 4d8f17c commit ee29f8d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/publish-mac-arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ echo $ERR_LOG_SECRET >> log_creds.txt
echo $ERR_LOG_URL >> log_creds.txt
echo $TELEMETRY_URL >> log_creds.txt

# Enable Code Signing
CSC_IDENTITY_AUTO_DISCOVERY=true

# Build
# Install Dependencies
yarn install

# Set .env and build
export GH_TOKEN=$GH_PUBLISH_TOKEN &&
export CSC_IDENTITY_AUTO_DISCOVERY=true &&
export APPLE_ID=$APPLE_ID &&
export APPLE_TEAM_ID=$APPLE_TEAM_ID &&
export APPLE_APP_SPECIFIC_PASSWORD=$APPLE_APP_SPECIFIC_PASSWORD &&
yarn electron:build --mac --publish=always

cd ../../

0 comments on commit ee29f8d

Please sign in to comment.