-
Notifications
You must be signed in to change notification settings - Fork 17
64 lines (60 loc) · 1.69 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Deploy to DigitalOcean
on:
push:
branches:
- master
jobs:
deploy_api_mainnet:
name: Deploy API to mainnet
environment: api_mainnet
concurrency:
group: api_mainnet
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Deploy if files have changed
run: ./scripts/deploy-api-prod.sh
deploy_api_testnet:
name: Deploy API to testnet
environment: api_testnet
concurrency:
group: api_testnet
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Deploy if files have changed
run: ./scripts/deploy-changed.sh apps/api ${{ vars.DIGITALOCEAN_APP_ID }}
deploy_mana_prod:
name: Deploy mana to production
environment: mana_prod
concurrency:
group: mana_prod
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Deploy if files have changed
run: ./scripts/deploy-changed.sh apps/mana ${{ vars.DIGITALOCEAN_APP_ID }}