Skip to content

Commit eeb95a1

Browse files
committed
ci: Adding Migration to Github Actions
1 parent 03b87c3 commit eeb95a1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ jobs:
6262
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
6363
restore-keys: ${{ runner.os }}-cargo-
6464

65+
- name: Run D1 Migrations
66+
uses: cloudflare/wrangler-action@v3
67+
with:
68+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
69+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
70+
command: d1 migrations apply jakarta-backend --remote
71+
6572
- name: Deploy Worker
6673
uses: cloudflare/wrangler-action@v3
6774
with:

0 commit comments

Comments
 (0)