Skip to content

Merge pull request #71 from CAPS-DGU/develop #9

Merge pull request #71 from CAPS-DGU/develop

Merge pull request #71 from CAPS-DGU/develop #9

Workflow file for this run

name: SSH and Execute Shell Script
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Execute remote script
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: cd ${{ secrets.SCRIPT_PATH }} && ./${{ secrets.SCRIPT_NAME }}