IsmatS commited on
Commit
1f50ffd
·
1 Parent(s): 379e215
Files changed (1) hide show
  1. .github/workflows/fly-deploy.yml +9 -1
.github/workflows/fly-deploy.yml CHANGED
@@ -5,6 +5,7 @@ on:
5
  push:
6
  branches:
7
  - main # Update this if your primary branch is named differently
 
8
  jobs:
9
  deploy:
10
  name: Deploy app
@@ -13,6 +14,13 @@ jobs:
13
  steps:
14
  - uses: actions/checkout@v4
15
  - uses: superfly/flyctl-actions/setup-flyctl@master
16
- - run: flyctl deploy --remote-only --app named-entity-recognition # "--app your-app-name" specifies the app if multiple apps exist
 
 
 
 
 
 
 
17
  env:
18
  FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} # Ensure this token is set in your GitHub repo's secrets
 
5
  push:
6
  branches:
7
  - main # Update this if your primary branch is named differently
8
+
9
  jobs:
10
  deploy:
11
  name: Deploy app
 
14
  steps:
15
  - uses: actions/checkout@v4
16
  - uses: superfly/flyctl-actions/setup-flyctl@master
17
+
18
+ # Step to scale memory to 2048 MB
19
+ - run: flyctl scale memory 2048 --app named-entity-recognition # Sets memory to 2 GB
20
+ env:
21
+ FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} # Fly.io API token for authentication
22
+
23
+ # Deploy the application
24
+ - run: flyctl deploy --remote-only --app named-entity-recognition # Specifies the app name
25
  env:
26
  FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} # Ensure this token is set in your GitHub repo's secrets