-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 965 Bytes
/
Copy pathfly-deploy.yml
File metadata and controls
32 lines (31 loc) · 965 Bytes
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
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Fly Deploy
on:
push:
branches:
- main
paths:
- "apps/relay/**"
- ".github/workflows/fly-deploy.yml"
workflow_dispatch:
jobs:
deploy:
name: Deploy relay app
runs-on: ubuntu-latest
concurrency: deploy-relay-group
env:
FLY_APP_NAME: wrapper-dry-pathway-1935
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.2"
- run: bun install --frozen-lockfile --ignore-scripts
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config apps/relay/fly.toml --app "$FLY_APP_NAME"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- run: |
RELAY_URL="https://${FLY_APP_NAME}.fly.dev" bun run --cwd apps/relay smoke
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}