-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (38 loc) · 792 Bytes
/
deploy.yml
File metadata and controls
40 lines (38 loc) · 792 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
33
34
35
36
37
38
39
40
name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
AUTH_USER: admin
AUTH_PASS: admin
CI: "true"
name: Tests
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: '25'
elixir-version: '1.14.1'
- run: mix deps.get --only test
- run: mix compile --warnings-as-errors
- run: mix test
deploy:
name: Deploy
needs: test
runs-on: ubuntu-latest
environment: production
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions@1.1
with:
args: "deploy"