Skip to content

Commit 67480f6

Browse files
committed
setup deploy github action
1 parent 91a1d52 commit 67480f6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
name: Deploy Server to Fly.io
9+
runs-on: ubuntu-latest
10+
env:
11+
SQL_GENERATE_URL: ${{ secrets.DATABASE_URL_FOR_PRISMA_SQL_GENERATION }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: superfly/flyctl-actions/setup-flyctl@master
15+
- uses: oven-sh/setup-bun@v2
16+
with:
17+
bun-version: 1.2.2
18+
- run: bun deploy:server --access-token ${{ secrets.FLY_DEPLOY_TOKEN }}

0 commit comments

Comments
 (0)