Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI examples deployment isn't working #317

Open
2 of 19 tasks
sasha240100 opened this issue Sep 3, 2017 · 4 comments
Open
2 of 19 tasks

Travis CI examples deployment isn't working #317

sasha240100 opened this issue Sep 3, 2017 · 4 comments
Assignees

Comments

@sasha240100
Copy link
Member

Travis CI examples deployment isn't working.

Version:
  • v2.x.x
  • v1.x.x
Issue type:
  • Bug
  • Proposal/Enhancement
  • Question
  • Discussion

Tested on:
Desktop
  • Chrome
  • Chrome Canary
  • Chrome dev-channel
  • Firefox
  • Opera
  • Microsoft IE
  • Microsoft Edge
Android
  • Chrome
  • Firefox
  • Opera
IOS
  • Chrome
  • Firefox
  • Opera
@hirako2000
Copy link
Collaborator

has it ever worked automatically? I don't see the deploy step for examples.
I see two surge steps. Does not look like they are for pushing examples.

before_deploy:
  - gulp examples:build
  - gulp docs --all
...
deploy:
  provider: surge
  project: ./
  domain: whs-dev.surge.sh
  skip_cleanup: true
  on: dev
deploy:
  provider: surge
  project: ./docs/public/
  domain: whsjs.io
  skip_cleanup: true
  on:
    branch: master
    tags: true

@hirako2000
Copy link
Collaborator

Also, I propose we do this as part of this issue:

  • Add another surge deploy step for examples, to build example that match latest released version of whs
deploy:
  provider: surge
  project: ./examples
  domain: whs-master.surge.sh
  skip_cleanup: true
  on: master

Otherwise some newer examples not supported yet by released version might be tried and would not work on the pulled dependency by users. would be confusing.

@sasha240100
Copy link
Member Author

@hirako2000 I completely agree on that why. I still can't figure out why dev examples are not pushing to surge. (something happened, while nothing was touched)

@hirako2000
Copy link
Collaborator

hirako2000 commented Sep 20, 2017

this is a change, it was touched. maybe we can't have multiple deploy steps with same provider: diff.

I suggest we do this below, as documented here, and using Travis env variables for conditional branch deployment.

after_success:
  - test $TRAVIS_BRANCH = "dev" && surge --project ./ --domain whs-dev.surge.sh
  - test $TRAVIS_BRANCH = "master" && surge --project ./ --domain whs-master.surge.sh
  - test $TRAVIS_BRANCH = "master" && surge --project ./docs/public/ --domain whsjs.io 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants