-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.15 KB
/
Copy pathfly.yml
File metadata and controls
38 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy to Fly.io
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- uses: chrnorm/deployment-action@v2
if: success()
id: deployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment: production
environment-url: https://secret-santa-m7bt-w.fly.dev
deployment-branch: main
auto-merge: false
- uses: chrnorm/deployment-status@v2
if: success()
with:
token: ${{ secrets.GITHUB_TOKEN }}
state: success
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
environment-url: https://secret-santa-m7bt-w.fly.dev
- uses: chrnorm/deployment-status@v2
if: failure()
with:
token: ${{ secrets.GITHUB_TOKEN }}
state: failure
deployment-id: ${{ steps.deployment.outputs.deployment_id }}