Skip to content

Commit

Permalink
Fix continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-walker committed Jan 29, 2024
1 parent 4dde154 commit e26bfaa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Publish
uses: web3-storage/wrangler-action@node16
- name: Setup Node
uses: actions/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
workingDirectory: ./worker
node-version: 20
- name: Publish
working-directory: ./worker
run: npx wrangler --env production
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
6 changes: 6 additions & 0 deletions worker/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ database_name = "vh7"
database_id = "8248b645-7133-4795-a343-e9273706f77c"
preview_database_id = "c7e738c7-0b24-4c49-a3db-695e8658c01c"
migrations_dir = "migrations"

[env.production.vars]
S3_REGION = "eu-west-1"
S3_ENDPOINT_URL = "https://gateway.eu1.storjshare.io"
S3_BUCKET = "vh7-uploads"
VH7_ENV = "production"

0 comments on commit e26bfaa

Please sign in to comment.