sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.85k stars 136 forks source link

--token not working #355

Closed YashKumarVerma closed 5 years ago

YashKumarVerma commented 5 years ago

i've added the SURGE_TOKEN and SURGE_LOGIN env variables in travis but this command

surge --project ./ -d https://***.surge.sh --token $SURGE_TOKEN

asks to enter credentials image

Al-un commented 5 years ago

Have you tried the Travis Surge provider? It's working pretty well for me. (link to my travis.yml)

Platane commented 5 years ago

One workaround is to have SURGE_LOGIN and SURGE_TOKEN exposed as env var

As defined in this file : https://github.com/sintaxi/surge/blob/1b947a522c9403166a9c2c28120514a57b4ffcc1/lib/middleware/util/creds.js#L23

sintaxi commented 5 years ago

This should now be resolved. Setting SURGE_TOKEN as en environment variable or passing in a literal token in the --token works on the latest version of surge.

tpluscode commented 4 years ago

Hm, I just tried the env variable and it did not work. The --token param works though