Deploy Workflow
Prerequisites
Overview
Automates the deployment process, including deploying to staging and production environments based on branch merges. The Deploy workflow listens for pull request merges into the dev
and main
branches and triggers deployments accordingly.
The following sequence diagram illustrates the interactions and steps involved in the Deploy workflow, triggered by the merging of a pull request into the dev
or main
branch.
Step 1 — Create an app with Fly Launch
Start by reading create an app with Fly Launch
Step 2 — Create the Deployment Workflow File
Create a GitHub Actions workflow file that defines the automated steps for deploying your project to staging and production environments
a. Add the Workflow File
In your repository, navigate to the
.github/workflows/
directory. If it doesn't exist, create it.Create a new file named
deployment.yml
(or any name of your choice).
b. Define the Workflow
Add the following content to the deployment.yml
file: