Skip to content

11.14 Run deployment step only for the main branch pull request #7

11.14 Run deployment step only for the main branch pull request

11.14 Run deployment step only for the main branch pull request #7

Workflow file for this run

# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Fly Deploy
on:
push:
branches:
- main
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
deploy:
name: Deploy app
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
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: npm ci
- run: npm run build
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}