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 support #22

Closed
MoOx opened this issue Sep 22, 2015 · 11 comments
Closed

Travis-CI support #22

MoOx opened this issue Sep 22, 2015 · 11 comments

Comments

@MoOx
Copy link
Contributor

MoOx commented Sep 22, 2015

I tried to use this module to autodeploy from Travis-CI.
From the build log it seems to work https://travis-ci.org/MoOx/statinamic/builds/81526747#L639-L647
but it doesn't push anything.
FYI, I configured a GH_TOKEN value, I guess you are not using it, but why is the log saying it's working?
Are you open to a PR to handle this?

@marco-c
Copy link

marco-c commented Nov 9, 2015

See https://github.com/mozilla/oghliner which allows you to easily configure auto-deploy from Travis-CI.

@tschaub
Copy link
Owner

tschaub commented Nov 9, 2015

@MoOx a PR adding GH_TOKEN support would be great.

It looks like there is also an issue with these silent failures. I'll try to find some time to dig into it.

@vvo
Copy link

vvo commented Nov 10, 2015

Yep I also get silent failures, rm -rf node_modules seems to work but that would be awesome to know why its failing

vvo pushed a commit to algolia/instantsearch that referenced this issue Nov 10, 2015
@benoitvallon
Copy link

@tschaub @MoOx merging the #23 would allow us to do things like: gh-pages --repo https://$GH_TOKEN@github.com/user/private-repo.git -d dist which would be a way of launching deployments from Travis.

@tschaub
Copy link
Owner

tschaub commented Dec 2, 2015

I'll call this fixed with #23. Please reopen if this is not enough.

timaschew added a commit to timaschew/gh-pages that referenced this issue Dec 7, 2015
always handle error argument in a callback
@MoOx
Copy link
Contributor Author

MoOx commented Feb 10, 2016

Working for me with the --repo. Thanks!

@MoOx MoOx closed this as completed Feb 10, 2016
@ismay
Copy link

ismay commented Mar 9, 2016

@tschaub The suggested fix does not seem to be working for me with Travis. The error I get is:

*** Please tell me who you are.
Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.

build log here

It's running this task:

"deploy": "gh-pages --repo https://$GH_TOKEN@github.com/ismay/ismay.github.io.git -d build -b master",

see package.json

The GH_TOKEN should be working correctly as it worked fine with another deploy task. I'd set the user from the command line but did not find a command to do so with gh-pages --help. Since this seems to have worked for others, any idea what's going wrong?

@MoOx
Copy link
Contributor Author

MoOx commented Mar 9, 2016

@ismay did you try to do what is asked? Example https://github.com/MoOx/statinamic/blob/c2ad13a7e459aaadf3138be3717ca5394c57/docs/scripts/deploy.sh#L3-L7

Some modules does this with random email/name.

@ismay
Copy link

ismay commented Mar 9, 2016

@MoOx I did, in fact that's how I used to do it. But I thought that there might be a gh-pages specific way to deal with this, since there wasn't any mention of setting these values manually in this issue.

@cdaringe
Copy link

it would be nice if this would stub those git user values on our behalf!

@nickserv
Copy link

nickserv commented Jul 23, 2017

You could also use Travis GitHub Pages Deployment, only using gh-pages for manual deployments.

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

No branches or pull requests

8 participants