gerich-home / it-depends

Lightweight dependency tracking library for JavaScript
http://it-depends-js.github.io/
Other
1 stars 2 forks source link

Added publish tasks. Added bower task as publishing task. #53

Closed VanDalkvist closed 8 years ago

VanDalkvist commented 8 years ago

Bower task will be triggered if branch is master and new tag is pushed. (#10)

For the Appveyor build you should have two environment variables: BOWER_REPO_PUBLISH_IDENTITY - Github user which can be used for pushing to bower repository; BOWER_REPO_PUBLISH_TOKEN - Github acess token which can be used for pushing to bower repository and generated here - https://github.com/settings/tokens.

Maybe it can be simplified, but it works. I am going read about Appveyor secure tokens and maybe will rewrite it to tokens under appveyor.yml file.

You can check it in https://github.com/it-depends-js/it-depends-bower . I will remove release and testing artifacts lately.

VanDalkvist commented 8 years ago

Secured variables -

BOWER_REPO_PUBLISH_IDENTITY:
    secure: sZFor2witUekX3GmcFBmsg==
BOWER_REPO_PUBLISH_TOKEN:
    secure: OD0957xNoF+xL0R7pqhYxMztlYG9Ajy0TNkqc48lBbBzgMeZWswQhuAs3d48VrW4

work fine from appveyor.yml

gerich-home commented 8 years ago

for some reason build fails when downloading phantomjs, rebuilding PR

gerich-home commented 8 years ago

Secured variables -

BOWER_REPO_PUBLISH_IDENTITY:
   secure: sZFor2witUekX3GmcFBmsg==
BOWER_REPO_PUBLISH_TOKEN:
   secure: OD0957xNoF+xL0R7pqhYxMztlYG9Ajy0TNkqc48lBbBzgMeZWswQhuAs3d48VrW4

work fine from appveyor.yml

Then should we add them to appveyor.yml? I can encrypt what is needed and give encrypted values to you - just say where should I found plain values.

VanDalkvist commented 8 years ago

BOWER_REPO_PUBLISH_IDENTITY - Github user which can be used for pushing to bower repository; BOWER_REPO_PUBLISH_TOKEN - Github acess token which can be used for pushing to bower repository and generated here - https://github.com/settings/tokens.

from the pull request description.

Actually, I don't think we should encrypt BOWER_REPO_PUBLISH_IDENTITY. it is just a user who has access to push to the bower repository. vandalkvist for me.

VanDalkvist commented 8 years ago

Ok, you can generate it here - https://github.com/settings/tokens, encrypt it and I will push it to appveyor.yml.

gerich-home commented 8 years ago

Done, created and encrypted the token: DWgqHUlNJ9oe1FvlLxgVxiUN6ScR/di6zDtCG1bzGLW9qr7W3EnURBvqgomL8vpk

VanDalkvist commented 8 years ago

Done - https://github.com/gerich-home/it-depends/pull/53/commits/444123fd5ad8147676602aa50520bb0bf5a4e1a2.