Skip to content

Commit

Permalink
Merge pull request #40 from redwoodjs/jgmw/fly-github-cd
Browse files Browse the repository at this point in the history
Add workflow to auto deploy app to fly
  • Loading branch information
Josh-Walker-GM authored Jun 19, 2024
2 parents 69a6e6d + 5e02a73 commit 55c8d60
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This workflow will deploy a Fly app on push to main
# A guide on this can be found at: https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy application
runs-on: ubuntu-latest
concurrency: deploy-group # Ensure only one deploy job runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 55c8d60

Please sign in to comment.