-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (46 loc) · 1.53 KB
/
wallet-deploy.yml
File metadata and controls
57 lines (46 loc) · 1.53 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Wallet
# Disabling until the wallet is upgraded to use Cryptid v2
#on:
# push:
# branches:
# - develop
# - main
jobs:
deploy:
name: Build and deploy the cryptid wallet on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['16.x']
os: [ubuntu-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node dependencies
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn
- name: Build Dependencies
run: yarn workspace @identity.com/cryptid build
- name: Build Wallet
run: yarn workspace @identity.com/cryptid build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy
run: |
if [ "${{ github.ref }}" = "refs/heads/develop" ]; then
STAGE=dev
fi
# set CI=false to ignore lint warnings inherited from sollet.io (until fixed)
CI=false STAGE=${STAGE:-prod} yarn workspace @identity.com/cryptid-wallet deploy