Continuous Deployment of Templates

This document explains how to deploy your static site templates to TakeShape whenever you push to your Git repository. It's possible to use your favorite CI/CD provider such as CircleCI, TravisCI, Netlify, Jenkins, etc. Here are the basic steps:

  1. Make sure that your have configured a Static Site.
  2. In your local development environment run npx tsg init and select the site that you wish to deploy to.
  3. The init results in a .tsgrc file to be written to your working directory. Copy the projectId, siteId and authToken.
  4. In your CI Provider set the variables you copied it step 2 as environment variables TS_PROJECT_ID, TS_SITE_ID and TS_AUTH_TOKEN.
  5. Set your build command to npx tsg deploy

Now when you push updates to your template code CI will push your templates to TakeShape and TakeShape will deploy static HTML to your configured host.

Join us

Interested in joining the team as coworker or investor?