Skip to content

Commit

Permalink
Add production deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
petervmeijgaard committed Feb 8, 2025
1 parent 25f790f commit cf8ccc9
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: πŸš€ Deploy

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize, closed]

Expand All @@ -11,8 +14,9 @@ env:

jobs:
review_app:
name: Fly.io
name: πŸš€ Deploy review app
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'pull_request' }}
outputs:
url: ${{ steps.deploy.outputs.url }}
concurrency:
Expand All @@ -29,3 +33,23 @@ jobs:
- name: πŸš€ Deploy PR app to Fly
id: deploy
uses: superfly/[email protected]

production:
name: πŸš€ Deploy production
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'push' }}
environment:
name: Production
steps:
- name: ⬇️ Checkout repo
uses: actions/[email protected]
with:
fetch-depth: 0

- name: 🎈 Setup Fly
uses: superfly/flyctl-actions/[email protected]

- name: πŸš€ Deploy Production
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit cf8ccc9

Please sign in to comment.