Skip to content

Commit

Permalink
Feature/GitHub deploy (#6)
Browse files Browse the repository at this point in the history
* Deploy from Github

* Attempt to use different key

* Revert change

* Bump versions in yml

* Use different secret key

* Change app name

* Reinstate old name

* Rename service

* Reinstate DB binding

* Change trigger

---------

Co-authored-by: Jon Breen <[email protected]>
  • Loading branch information
cultpodcasts and cultpodcasts authored Feb 17, 2024
1 parent 12a2d7c commit e81d97c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/buildAndDeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: buildAndDeployWorker
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
15 changes: 15 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name = "api"
main = "src/index.ts"
compatibility_date = "2023-09-04"

[[r2_buckets]]
binding = "Content"
bucket_name = "content"

[[d1_databases]]
binding = "DB"
database_name = "cultpodcasts"
database_id = "d60db6d1-994d-448d-9be1-5067d1be72d8"

[[analytics_engine_datasets]]
binding = "Analytics"

0 comments on commit e81d97c

Please sign in to comment.