firecrawl/.github/workflows/fly.yml

22 lines
466 B
YAML
Raw Normal View History

2024-04-16 05:01:47 +08:00
name: Fly Deploy
on:
push:
branches:
- main
# schedule:
# - cron: '0 */4 * * *'
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
2024-04-16 05:31:31 +08:00
- uses: actions/checkout@v3
2024-04-16 05:01:47 +08:00
- name: Change directory
run: cd apps/api
2024-04-16 05:29:55 +08:00
- uses: superfly/flyctl-actions/setup-flyctl@master
2024-04-16 05:34:12 +08:00
- run: flyctl deploy ./apps/api --remote-only -a firecrawl-scraper-js
2024-04-16 05:01:47 +08:00
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2024-04-16 05:31:31 +08:00