Skip to content

Commit b723ea8

Browse files
committed
modernize fly setup
1 parent e8d4497 commit b723ea8

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ jobs:
116116
}}-migrations_${{ hashFiles('./prisma/migrations/*/migration.sql')
117117
}}
118118

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+
119125
- name: 🏗 Build
120126
run: npm run build
121127

@@ -156,20 +162,20 @@ jobs:
156162
mv ./other/Dockerfile ./Dockerfile
157163
mv ./other/.dockerignore ./.dockerignore
158164
165+
- name: 🎈 Setup Fly
166+
uses: superfly/flyctl-actions/[email protected]
167+
159168
- name: 🚀 Deploy Staging
160169
if: ${{ github.ref == 'refs/heads/dev' }}
161-
uses: superfly/[email protected]
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
166173
env:
167174
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
168175

169176
- name: 🚀 Deploy Production
170177
if: ${{ github.ref == 'refs/heads/main' }}
171-
uses: superfly/[email protected]
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 }}
174180
env:
175181
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 commit comments

Comments
 (0)