We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07660bc commit 143ccecCopy full SHA for 143ccec
.travis.yml
@@ -15,7 +15,5 @@ before_deploy:
15
- npm install netlify-cli -g
16
deploy:
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
+ script: ./netlify_deploy.sh
+ skip_cleanup: true
netlify.toml
netlify_deploy.sh
@@ -0,0 +1,17 @@
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
13
14
+ --message "Preview deploy from Travis CI"
+if
0 commit comments