2024-06-04 15:42:07 +08:00
|
|
|
name: Fly Deploy Direct
|
|
|
|
on:
|
|
|
|
schedule:
|
2024-06-19 01:34:44 +08:00
|
|
|
- cron: '0 */2 * * *'
|
2024-06-04 15:42:07 +08:00
|
|
|
|
|
|
|
env:
|
|
|
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
|
|
BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}
|
|
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
|
|
HOST: ${{ secrets.HOST }}
|
|
|
|
LLAMAPARSE_API_KEY: ${{ secrets.LLAMAPARSE_API_KEY }}
|
|
|
|
LOGTAIL_KEY: ${{ secrets.LOGTAIL_KEY }}
|
|
|
|
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
|
|
|
|
POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
|
|
|
|
NUM_WORKERS_PER_QUEUE: ${{ secrets.NUM_WORKERS_PER_QUEUE }}
|
|
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
|
|
PLAYWRIGHT_MICROSERVICE_URL: ${{ secrets.PLAYWRIGHT_MICROSERVICE_URL }}
|
|
|
|
PORT: ${{ secrets.PORT }}
|
|
|
|
REDIS_URL: ${{ secrets.REDIS_URL }}
|
|
|
|
SCRAPING_BEE_API_KEY: ${{ secrets.SCRAPING_BEE_API_KEY }}
|
|
|
|
SUPABASE_ANON_TOKEN: ${{ secrets.SUPABASE_ANON_TOKEN }}
|
|
|
|
SUPABASE_SERVICE_TOKEN: ${{ secrets.SUPABASE_SERVICE_TOKEN }}
|
|
|
|
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
|
|
|
|
TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
name: Deploy app
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
2024-07-12 05:56:36 +08:00
|
|
|
- run: flyctl deploy --remote-only -a firecrawl-scraper-js && curl -X POST https://api.firecrawl.dev/admin/$BULL_AUTH_KEY/unpause
|
|
|
|
working-directory: ./apps/api
|
2024-06-04 15:42:07 +08:00
|
|
|
env:
|
|
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
2024-07-12 05:56:36 +08:00
|
|
|
BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}
|