Skip to content

Commit c80d4cd

Browse files
author
Shammamah Hossain
authored
Update config.yml
1 parent 844f5e8 commit c80d4cd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.circleci/config.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,13 @@ jobs:
9999
fi
100100
git config --global user.email '<>' # Leave email blank
101101
git config --global user.name "Circle MonoRepo Automatic Deployer"
102-
echo $PLOTLY_GA_CODE > ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js
103-
git add ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js && git commit -m "Deployed commit: $CIRCLE_SHA1"
104-
git remote add $APP https://dash-gallery.plotly.host/GIT/$APP
105-
git push $APP master --force || echo "Deploy failed because there is no such app on Dash Gallery: $APP. Please use the web interface to create an app with this name. Continuing deployments..."
102+
if [ -d ~/dash-sample-apps/apps/"$APP"/ ]
103+
then
104+
echo $PLOTLY_GA_CODE > ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js
105+
git add ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js && git commit -m "Deployed commit: $CIRCLE_SHA1"
106+
git remote add $APP https://dash-gallery.plotly.host/GIT/$APP
107+
git push $APP master --force || echo "Deploy failed because there is no such app on Dash Gallery: $APP. Please use the web interface to create an app with this name. Continuing deployments..."
108+
fi
106109
done
107110
- run:
108111
name: Push to production

0 commit comments

Comments
 (0)