File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,5 @@ before_deploy:
15
15
- npm install netlify-cli -g
16
16
deploy :
17
17
provider : script
18
- script : netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --dir ./web
19
- skip_cleanup : true
20
- on :
21
- branch : netlify
18
+ script : ./netlify_deploy.sh
19
+ skip_cleanup : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ $TRAVIS_BRANCH = " foo" ]; then
4
+ netlify deploy \
5
+ --auth $NETLIFY_AUTH_TOKEN \
6
+ --site $NETLIFY_SITE_ID \
7
+ --dir ./web \
8
+ --prod \
9
+ --message " Production deploy from Travis CI"
10
+
11
+ else
12
+ netlify deploy \
13
+ --auth $NETLIFY_AUTH_TOKEN \
14
+ --site $NETLIFY_SITE_ID \
15
+ --dir ./web \
16
+ --message " Preview deploy from Travis CI"
17
+ if
You can’t perform that action at this time.
0 commit comments