Travis CI builds an application but does not deploy it in Surge.sh

I try to create / deploy an angular app every time I click on my code on github. The CSR travis construct goes through, but for some reason, it does not deploy to Surge. I have added the SURGE_LOGIN and SURGE_TOKEN environment variables to the repository settings, but it still does not work. Should I mention that the deployment failed in the build log? Any idea what is wrong here, how can I fix this? In addition, I do not receive emails when the assembly passes / fails, even if it is specified in the configuration file and my email address, which I added to the environment variable SURGE_LOGIN

the end of my travis build log:

42.29s$ ng build -prod

1439
Date: 2017-11-02T11:04:25.130Z

1440
Hash: 5dadab3e49327d48aac1

1441
Time: 38060ms

1442
chunk {0} polyfills.d8d3d78a4deb2ab66856.bundle.js (polyfills) 66.1 kB {4} [initial] [rendered]

1443
chunk {1} styles.4d93494871bdc47b353f.bundle.css (styles) 115 kB {4} [initial] [rendered]

1444
chunk {2} main.725afabe80d80f10fd14.bundle.js (main) 8.08 kB {3} [initial] [rendered]

1445
chunk {3} vendor.4400ceca3ce00f041a26.bundle.js (vendor) 434 kB [initial] [rendered]

1446
chunk {4} inline.fe3295955bbd9314430c.bundle.js (inline) 1.45 kB [entry] [rendered]

1447

1448

1449
The command "ng build -prod" exited with 0.

1450

1451
Done. Your build exited with 0.


my .travis.yml code:

#travis CI build configuration

#build language

language: node_js

#node_js versions

node_js:
- "6.11.2"

#before running the build

before-script:
- npm install #install all dependencies

- npm install -g surge #global surge install

#actual build step
script: 
- ng build -prod

#build only on push not on pull requests.

deploy:
provider: surge
skip_cleanup: true
project: ./dist/  #build output path

domain: gaping-feeling.surge.sh  #surge domain

#notifications

notifications:
email:
on_success: change #default: change

on_failure: change #default: change
+4
source share
1 answer

- yaml. - .

a:
b:

a:
  b:

. a b , b a. yaml

#travis CI build configuration

#build language

language: node_js

#node_js versions

node_js:
- "6.11.2"

#before running the build

before-script:
- npm install #install all dependencies

- npm install -g surge #global surge install

#actual build step
script: 
- ng build -prod

#build only on push not on pull requests.

deploy:
  provider: surge
  skip_cleanup: true
  project: ./dist/  #build output path
  domain: gaping-feeling.surge.sh  #surge domain

notifications:
  email:
    on_success: change 
    on_failure: change

, .

+1

Source: https://habr.com/ru/post/1688589/


All Articles