Merge pull request #37 from xendfinance/franko4don-patch-2 #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Layer2 UI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
layer2_frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- run: echo "${{ secrets.GCP_VM_PRIVATE_KEY }}" > id_rsa | |
- run: chmod -R 600 id_rsa | |
- run: ssh -i id_rsa -o StrictHostKeyChecking=no [email protected] "cd /var/www/layer2 && git pull origin main && npm install && pm2 restart parse-apps.config.js && exit" |