2024-07-13 18:09:59 +00:00
|
|
|
name: Remote update execution
|
2024-07-12 22:11:26 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-07-12 21:52:48 +00:00
|
|
|
jobs:
|
2024-07-13 18:09:59 +00:00
|
|
|
build:
|
|
|
|
name: Build
|
2024-07-12 21:52:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-13 18:09:59 +00:00
|
|
|
- name: executing remote ssh commands using password
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.SSH_HOST }}
|
|
|
|
username: ${{ secrets.SSH_USER }}
|
|
|
|
key: ${{ secrets.SSH_KEY }}
|
|
|
|
script: |
|
|
|
|
bash /var/www/update.sh
|