Skip to content

Deploy API

Deploy API #2

Workflow file for this run

name: Deploy API
on:
push:
branches: [main]
paths:
- "packages/api/**"
- ".github/workflows/deploy-api.yml"
workflow_dispatch:
concurrency:
group: deploy-api-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Deploy to Fly.io
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy
working-directory: packages/api
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}