Skip to content

Commit

Permalink
Cloudflare deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
johnd0e committed Feb 26, 2024
1 parent 1e7df26 commit 0c3aa01
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cf-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy Worker
on:
push:
branches:
- main
pull_request:
repository_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Build & Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.wrangler
4 changes: 4 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name = "gemini"
main = "src/worker.mjs"
compatibility_date = "2024-01-17"
compatibility_flags = [ "nodejs_compat" ]

0 comments on commit 0c3aa01

Please sign in to comment.