From 6a0ec91254c61a1f478fdcbfddd8d71ad696a9eb Mon Sep 17 00:00:00 2001 From: FlintyLemming Date: Tue, 28 Feb 2023 13:59:43 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..378f97a --- /dev/null +++ b/.github/workflows/main.yml @@ -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 +