2024-04-15 17:01:47 -04:00
|
|
|
name: Fly Deploy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
# schedule:
|
|
|
|
# - cron: '0 */4 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
name: Deploy app
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Change directory
|
|
|
|
run: cd apps/api
|
2024-04-15 17:29:55 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
2024-04-15 17:01:47 -04:00
|
|
|
- run: flyctl deploy --remote-only
|
|
|
|
env:
|
|
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|