A basic workflow similar to default Ploi deploy behaviour.
Triggers a deployment on every push to the master branch.
If you only want to deploy when a new Github release version has been published check out this workflow example.
This workflow is a little more advanced it will only run this workflow if the commit message contains [Release]
and skip in all other cases.
By default, Github actions will only execute a step if all previous steps succeed, this make it ideal to use a deployment step after running your tests.
In this workflow you can build and run tests, and the deployment will only be triggered if all previous steps go through without any errors.