21 lines
492 B
YAML
21 lines
492 B
YAML
name: Deploy Blog
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
HTTP_PROXY: http://10.255.0.1:7890
|
|
HTTPS_PROXY: http://10.255.0.1:7890
|
|
steps:
|
|
- name: Execute remote SSH commands using password
|
|
uses: appleboy/ssh-action@v1
|
|
with:
|
|
host: ${{ secrets.HOST }}
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORD }}
|
|
port: ${{ secrets.PORT }}
|
|
script: ls -la / |