klarna / ui

[Archived] 🔩 Klarna's UI components library
https://klarna.github.io/ui/
Other
210 stars 26 forks source link

Push builds of all branches to gh-pages #42

Closed xaviervia closed 2 years ago

xaviervia commented 8 years ago

So, the idea is to be able to try changes out and demonstrate really fast. So:

  1. You create a branch new-design-prototype
  2. You do your magic
  3. You push to Github
  4. You find your version in http://klarna.github.io/ui/new-design-prototype/
Nevon commented 7 years ago

I might get around to doing this at some point, but my plan for doing this is:

  1. Create a service user with access to a resource in one of Klarna's S3 buckets.
  2. Configure Travis to deploy to S3 for all non-master branches (or maybe only on PRs, if that's possible).
  3. Set an expiry on the files (don't remember if it's called that exactly) for a week or something, so that they're automatically removed.

The reason for this is that pushing it into the gh-pages branch will just be really complicated and the branch will just grow and grow forever.

People that don't have push rights to this repo won't be able to deploy to S3, due to Travis' security model, but I think that's fine.