Skip to content

posts should be present in initial html from server #13

posts should be present in initial html from server

posts should be present in initial html from server #13

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
migrations:
name: Migrate database
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun db:migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
deploy:
name: Deploy app
runs-on: ubuntu-latest
needs: migrations
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}