Yes, It’ll put a token into your command line you can copy and paste into your github secrets, then use that as an environment variable.
~\gits
❯ & $yak login --ci
Your browser has been opened to visit:
https://accounts.rhino3d.com/oauth2/auth?response_type=id_token+token&client_id=yak&redirect_uri=http://localhost:5123/&scope=profile+openid+email+noexpire&state=<redacted>
Your non-expiring(+) token is shown below. Use this to set the YAK_TOKEN
environment variable on your build machine. Remember to keep it safe!
- - - - - - - - -
<REDACTED>
- - - - - - - - -
+ OK, actually this token expires in 49 years (2075-03-20T16:30:19.8313115+01:00)
Wait, then how do you use that YAK_TOKEN variable?
Am I suppose to use any mcneel provided action files, OR, how should I use that token with yak command? Will it find a Environmental variable automatically?
In your Github Action you can provide the api token (YAK_TOKEN) as an environment variable and then you don’t need to login in the github action ci run.