Skip to content

Commit

Permalink
Create build.yml for React Build on SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
hppanpaliya committed Sep 13, 2023
1 parent 17ed488 commit bfb6bfd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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

0 comments on commit bfb6bfd

Please sign in to comment.