Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 0ad7268

Browse files
chore: modernize Fly setup (#253)
1 parent b1adee8 commit 0ad7268

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
name: 🚀 Deploy
115115
runs-on: ubuntu-latest
116116
needs: [lint, typecheck, vitest, cypress]
117-
# only build/deploy main branch on pushes
117+
# only deploy main/dev branch on pushes
118118
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
119119

120120
steps:
@@ -128,18 +128,17 @@ jobs:
128128
file: fly.toml
129129
field: app
130130

131+
- name: 🎈 Setup Fly
132+
uses: superfly/flyctl-actions/[email protected]
133+
131134
- name: 🚀 Deploy Staging
132135
if: ${{ github.ref == 'refs/heads/dev' }}
133-
uses: superfly/[email protected]
134-
with:
135-
args: deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging
136+
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging
136137
env:
137138
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
138139

139140
- name: 🚀 Deploy Production
140141
if: ${{ github.ref == 'refs/heads/main' }}
141-
uses: superfly/[email protected]
142-
with:
143-
args: deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}
142+
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}
144143
env:
145144
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 commit comments

Comments
 (0)