Continuous deployment with GitHub Actions
Continuous deployment is a deployment strategy that enables the deployment and release of software to its relevant environment (production, in most cases) whenever there is a committed code change. Usually, this is preceded by automated test cases; when those pass, the code is deployed automatically.
GitHub Actions is a continuous deployment platform provided by GitHub that allows you to trigger workflows on certain actions (such as code commit/merge/pull request). These workflows can be used to deploy to your choice of cloud provider. The best thing about GitHub Actions is that it integrates seamlessly with GitHub.
Other tools can be used to perform continuous deployment but I will be focusing on GitHub Actions because it is one of the easiest ones to understand and adopt.
Getting ready
For this recipe, I am assuming that you have a GitHub account and know the basics of managing code and repositories on GitHub.
In this recipe...