Skip to content

Commit d877960

Browse files
Add GitHub Actions workflows to README
1 parent 3fe5afb commit d877960

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,25 @@ For each instance:
8181
Usage:
8282

8383
```bash
84-
bash
8584
npm run migrations:apply-main
8685
```
8786

88-
This update adds a new section to the `README.md` file, documenting the `apply-main` script and its usage.
87+
## GitHub Actions Workflows
88+
89+
### Deploy to Production
90+
91+
The `main-migrations.yaml` workflow is triggered on a push to the `main` branch. It performs the following steps:
92+
93+
1. Checks out the repository.
94+
1. Checks for changes in the `migrations` folder.
95+
1. If changes are detected, sets up Node.js, installs dependencies, and runs the `migrations:apply-main` script.
96+
1. Deploys the application to Netlify using the specified instances.
97+
98+
### Deploy to Staging
99+
100+
The `staging-migrations.yaml` workflow is triggered on pull request events (opened or synchronized). It performs the following steps:
101+
102+
1. Checks out the repository.
103+
1. Checks for changes in the `migrations` folder.
104+
1. If changes are detected, sets up Node.js, installs dependencies, and runs the `migrations:apply-staging` script.
105+
1. Deploys the application to Netlify using the specified instances.

0 commit comments

Comments
 (0)