Skip to content

Commit

Permalink
add flyctl deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fennifith committed Dec 8, 2024
1 parent 743645e commit c046535
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Fly Deploy

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # ensure only one deploy action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/[email protected]
- name: Deploy Worker
run: flyctl deploy --remote-only
working-directory: ./worker
env:
FLY_API_TOKEN: ${{ secrets.FLY_WORKER_DEPLOY_TOKEN }}
- name: Deploy API
run: flyctl deploy --remote-only
working-directory: ./api
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_DEPLOY_TOKEN }}

0 comments on commit c046535

Please sign in to comment.