Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismat-Samadov committed Nov 4, 2024
1 parent 4ba2516 commit 4dce80d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main # Update this if your primary branch is named differently

jobs:
deploy:
name: Deploy app
Expand All @@ -13,6 +14,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --app named-entity-recognition # "--app your-app-name" specifies the app if multiple apps exist

# Step to scale memory to 2048 MB
- run: flyctl scale memory 2048 --app named-entity-recognition # Sets memory to 2 GB
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} # Fly.io API token for authentication

# Deploy the application
- run: flyctl deploy --remote-only --app named-entity-recognition # Specifies the app name
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} # Ensure this token is set in your GitHub repo's secrets

0 comments on commit 4dce80d

Please sign in to comment.