Skip to content

Add akro.one to whitelisted origins #36

Add akro.one to whitelisted origins

Add akro.one to whitelisted origins #36

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Configure Host
run: |
mkdir -p ~/.ssh
echo "$SSH_KEY" >> ~/.ssh/github-ci
chmod 400 ~/.ssh/github-ci
echo -e "Host github-ci
\tUser github-ci
\tHostName 64.227.111.66
\tIdentityFile ~/.ssh/github-ci
\tStrictHostKeyChecking No" >> ~/.ssh/config
chmod 400 ~/.ssh/config
shell: bash
env:
SSH_KEY: ${{secrets.SSH_KEY}}
- name: Install PM2
run: npm install -g pm2
- name: Create env file
run: |
touch .env
echo "JSON_RPC_URL_1=\"$JSON_RPC_URL_1\"
JSON_RPC_URL_56=\"$JSON_RPC_URL_56\"
JSON_RPC_URL_137=\"$JSON_RPC_URL_137\"
JSON_RPC_URL_42161=\"$JSON_RPC_URL_42161\"" >> .env
shell: bash
env:
JSON_RPC_URL_1: ${{ secrets.JSON_RPC_URL_1 }}
JSON_RPC_URL_56: ${{ secrets.JSON_RPC_URL_56 }}
JSON_RPC_URL_137: ${{ secrets.JSON_RPC_URL_137 }}
JSON_RPC_URL_42161: ${{ secrets.JSON_RPC_URL_42161 }}
- name: Deploy
run: pm2 deploy pm2.json production