ci: implement GitHub Actions for remote SSH execution

- Add example GitHub Actions workflow for executing remote SSH commands using password authentication

Signed-off-by: appleboy <appleboy.tw@gmail.com>
这个提交包含在:
appleboy
2024-06-01 14:22:37 +08:00
父节点 aabaf1254d
当前提交 c8594ae37d

查看文件

@ -15,6 +15,25 @@ A clear and concise description of what the bug is. If applicable, add screensho
Please post your Yaml configuration file along with the output results. Please post your Yaml configuration file along with the output results.
```yaml
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.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
```
## Related environment ## Related environment
Please provide the following information: Please provide the following information: