-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add database migration workflow
- Loading branch information
1 parent
2cb781f
commit 4ded8d6
Showing
4 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Migrate database | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Apply all pending migrations to the database | ||
run: pnpm run migrate | ||
env: | ||
DATABASE_URL: ${{ secrets.DATABASE_URL }} | ||
DIRECT_URL: ${{ secrets.DIRECT_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,9 @@ | |
"db:push": { | ||
"cache": false, | ||
"dotEnv": [".env"] | ||
}, | ||
"db:deploy": { | ||
"cache": false | ||
} | ||
} | ||
} |
4ded8d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mindfulyze – ./
mindfulyze.vercel.app
mindfulyze-bsebas.vercel.app
mindfulyze-git-main-bsebas.vercel.app
mindfulyze.com
www.mindfulyze.com