File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,12 @@ jobs:
116
116
}}-migrations_${{ hashFiles('./prisma/migrations/*/migration.sql')
117
117
}}
118
118
119
+ - name : 🌱 Seed Database
120
+ if : steps.db-cache.outputs.cache-hit != 'true'
121
+ run : npx prisma db seed
122
+ env :
123
+ MINIMAL_SEED : true
124
+
119
125
- name : 🏗 Build
120
126
run : npm run build
121
127
@@ -156,20 +162,20 @@ jobs:
156
162
mv ./other/Dockerfile ./Dockerfile
157
163
mv ./other/.dockerignore ./.dockerignore
158
164
165
+ - name : 🎈 Setup Fly
166
+ uses :
superfly/flyctl-actions/[email protected]
167
+
159
168
- name : 🚀 Deploy Staging
160
169
if : ${{ github.ref == 'refs/heads/dev' }}
161
-
162
- with :
163
- args :
164
- ' deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app
165
- ${{ steps.app_name.outputs.value }}-staging'
170
+ run :
171
+ flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
172
+ --app ${{ steps.app_name.outputs.value }}-staging
166
173
env :
167
174
FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
168
175
169
176
- name : 🚀 Deploy Production
170
177
if : ${{ github.ref == 'refs/heads/main' }}
171
-
172
- with :
173
- args : ' deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}'
178
+ run :
179
+ flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
174
180
env :
175
181
FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments