Skip to content

Create build.yml for React Build on SSH #11

Create build.yml for React Build on SSH

Create build.yml for React Build on SSH #11

Workflow file for this run

name: remote ssh command
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
rm -r /home/harshal/React-TrashMail/mailserver/build
cd /home/harshal/React-TrashMail/react && yarn && yarn build