AguaClara / aide_design_specs

MIT License
0 stars 2 forks source link

ENH: Deploy Heroku site through GitHub actions #55

Open fletchapin opened 3 years ago

fletchapin commented 3 years ago

Use Case

When a deploy build is triggered, the heroku website could be packaged and deployed following these instructions.

Solution

When a tagged version is pushed to aide_design_specs or when pushes are made to the stable branch (up to the implementer which solution is preferred, here is are examples of tagged versions and stable branches starting workflows.

A GitHub action can be configured to deploy to Heroku. A Heroku token will likely have to be added to the repo secrets for this to work.

Alternatives

The website is currently deployed manually from the command line by AIDE team members. An alternative is to mimic this deployment in a custom GH action.

From the above instructions.

heroku create --buildpack https://github.com/Thermondo/heroku-buildpack-tex.git
heroku buildpacks:add heroku/python
git push heroku master
git push heroku deploy:master