-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 972 Bytes
/
deploy.yml
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
name: Fly Deploy
concurrency: deploy
on:
workflow_dispatch:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy app
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Coursier cache
uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: adopt:8
apps: sbt scala
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
cache-dependency-path: 'ui/yarn.lock'
- name: Build app
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
run: sbt Docker/stage
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only -c $(pwd)/fly.toml target/docker/stage