Skip to content

Commit

Permalink
add gh actions back (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically authored Nov 6, 2023
1 parent a8eb3ef commit 4470fa8
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- prod
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Deploy app
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy --env prod
secrets: |
LABRINTH_ADMIN_KEY
RATE_LIMIT_IGNORE_KEY
env:
LABRINTH_ADMIN_KEY: ${{ secrets.LABRINTH_ADMIN_SECRET_PROD }}
RATE_LIMIT_IGNORE_KEY: ${{ secrets.RATE_LIMIT_IGNORE_KEY_PROD }}
21 changes: 21 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Deploy app
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy --env staging
secrets: |
LABRINTH_ADMIN_KEY
RATE_LIMIT_IGNORE_KEY
env:
LABRINTH_ADMIN_KEY: ${{ secrets.LABRINTH_ADMIN_SECRET_DEV }}
RATE_LIMIT_IGNORE_KEY: ${{ secrets.RATE_LIMIT_IGNORE_KEY_DEV }}
1 change: 1 addition & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name = "sisyphus"
main = "src/index.ts"
compatibility_date = "2023-10-30"
account_id = "9ddae624c98677d68d93df6e524a6061"

[vars]
LABRINTH_URL = "http://127.0.0.1:8000/v2/"
Expand Down

0 comments on commit 4470fa8

Please sign in to comment.