Skip to content

feat: add protocol

feat: add protocol #3

name: Deploy to hardhat Development Server
on:
push:
branches:
- 'develop'
jobs:
deploy-hardhat-network:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Copy files to server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
ARGS: '-rlgoDzvc -i --delete'
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: '/home/penx/penx'
SOURCE: './'
- name: Run Node.js service
uses: appleboy/[email protected]
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
whoami
ls -al
cd /home/penx/penx/apps/protocol
npm i --no-package-lock
npm run hardhat:development