Skip to content

Commit f69dc53

Browse files
chore: update GitHub Actions workflow to apply D1 migrations using Wrangler
- Replaced the npm command for remote D1 migrations with the cloudflare/wrangler-action to streamline the deployment process.
1 parent f1e7dac commit f69dc53

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ jobs:
3535
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3636

3737
- name: Apply D1 migrations (remote)
38-
run: npm run db:migrate:remote
38+
uses: cloudflare/wrangler-action@v3
39+
with:
40+
command: d1 migrations apply botschat-db --remote --config wrangler.toml
41+
workingDirectory: .
3942
env:
4043
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4144
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)