Deploying with --token flag fails in Travis-CI
See original GitHub issueFollowing the instructions in the README for v2, I’ve been unable to successfully deploy via Travis.
In my Travis repo settings I’ve set FIREBASE_TOKEN
with the output from firebase prefs:token
, and in my travis.yml
I’ve replaced this:
after_success:
firebase deploy --email ${FIREBASE_EMAIL} --password ${FIREBASE_PASSWORD}
with this:
after_success:
firebase deploy --token "${FIREBASE_TOKEN}"
But the deploy fails with:
Error: Command requires authentication, please run firebase login
What am I missing?
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
npm deploy failing · Issue #9403 · travis-ci/travis-ci - GitHub
The most likely explanation is that your token is incorrect or incorrectly encrypted. The size of ~/.npmrc should not be a concern; my...
Read more >Customizing the Build - Travis CI Docs
Travis CI clones repositories without the quiet flag ( -q ) by default. ... We recommend using a read-only GitHub OAuth token to...
Read more >Release uploads, but job fails with weird error - Deployment
You can try passing the -r flag (https://docs.travis-ci.com/user/encryption-keys#usage) or use the settings page to set the environment variable ...
Read more >Issues with Deploying to Heroku via Travis-CI - Stack Overflow
I had this exact error message. In my case it was caused by invalid API credentials, and was fixed by refreshing them (per...
Read more >Use Travis CI to build and deploy project ... - David Dong
Github Pages Generator uses the Jekyll --safe flag. The workaround is to generate the site locally and then to push the generated HTML...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When adding my token into the Travis repo settings page, I neglected to wrap the token in quotes. Deploy is working now, thanks.
@r-park You saved us a lot of headache with this comment. Thank you!