Skip to content

Commit

Permalink
ci(workers): init db before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
shaokeyibb committed Jul 17, 2024
1 parent 44461f3 commit 1b852df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-cloudflare-workers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
secrets: |
ADMINISTRATOR_SECRET
preCommands: |
yarn cf-initdb
env:
ADMINISTRATOR_SECRET: ${{ secrets.ADMINISTRATOR_SECRET }}
upload-artifacts:
Expand Down
6 changes: 0 additions & 6 deletions cloudflare-workers/schema.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
DROP TABLE IF EXISTS `comments`;
DROP TABLE IF EXISTS `commenters`;
DROP TABLE IF EXISTS `offsets`;
DROP TABLE IF EXISTS `pages`;
DROP TABLE IF EXISTS `metas`;

CREATE TABLE IF NOT EXISTS `metas` (
`key` TEXT PRIMARY KEY,
`value` TEXT NOT NULL
Expand Down

0 comments on commit 1b852df

Please sign in to comment.