-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25f790f
commit f839762
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
||
|
@@ -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: | ||
|
@@ -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 }} |