Create main.yml

stack-3.26.0
FlintyLemming 2023-02-28 13:59:43 +08:00 committed by GitHub
parent 258e11058b
commit 6a0ec91254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

22
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: learn-github-actions
run-name: Updating blogs on server
on: [push]
jobs:
update-server:
runs-on: ubuntu-latest
steps:
- uses: D3rHase/ssh-command-action@v0.2.2
with:
# hostname / IP of the server
host: 113.31.174.4
# ssh port of the server
port: 22
# user of the server
user: root
# private ssh key registered on the server
private_key: ${{secrets.SERVER_SSH_KEY}}
# Fingerprint of the server, preventing man-in-the-middle attacks
# host_fingerprint: # optional
# command to be executed
command: sh /root/AppData/Scripts/updateBlog.sh