Deploying with GitHub Actions - GitHub Docs
Triggering your deployment You can use a variety of events to trigger your deployment workflow. Some of the most common are: pull_request, push, and workflow_dispatch. For example, a workflow with the following triggers runs whenever: There is a push to the main branch. A pull request targeting the main branch is opened, synchronized, or reopened.