automation

This commit is contained in:
Saahil dutta 2024-06-25 01:12:52 -04:00
parent 923a9ca6a6
commit 104b6cd9f3

20
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: remote ssh command
on: [push]
jobs:
build:
name: Build & deploy
runs-on: ubuntu-latest
environment: production
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v0.1.8
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /${{ secrets.USERNAME }}
bash ./deploy.sh ${{ github.event.repository.name }}