Creating the deployment pipeline with GitHub Actions
To create a deployment pipeline with GitHub Actions, we need to create configuration files for each pipeline configuration environment.
Follow the steps mentioned next to create your first deployment pipeline for your staging environment using GitHub Actions.
Open the Pinterest demo application or clone it from the official repository for this chapter to see a complete setup of the GitHub Actions.
If you’re following along, create a new file called staging.yml
inside the .
github/workflows
folder.
It’s important to note that the name of the folders must be exactly the same for GitHub Actions to pick the configuration up when pushing to your repository.
Pipeline for the staging environment
Open the staging.yml
file and add the following scripts to create a deployment pipeline for the staging environment:
on: pull_request: branches: - chapter-12 jobs: lint: ...