Skip to content

add github actions to deploy realtime and preview deploy #1

add github actions to deploy realtime and preview deploy

add github actions to deploy realtime and preview deploy #1

name: Deploy realtime - preview
on:
workflow_dispatch:
push:
branches:
- dev
paths:
- "apps/realtime/**"
jobs:
deploy:
name: Deploy realtime
runs-on: ubuntu-latest
environment: Preview
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only -c ./fly.preview.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}