Create main.yml
authorPatrick McGuire <insidenothing@gmail.com>
Fri, 15 May 2020 00:28:21 +0000 (20:28 -0400)
committerGitHub <noreply@github.com>
Fri, 15 May 2020 00:28:21 +0000 (20:28 -0400)
.github/workflows/main.yml [new file with mode: 0644]

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644 (file)
index 0000000..a5c3966
--- /dev/null
@@ -0,0 +1,16 @@
+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@master
+      with:
+        host: ${{ secrets.HOST }}
+        username: ${{ secrets.USERNAME }}
+        password: ${{ secrets.PASSWORD }}
+        port: ${{ secrets.PORT }}
+        script: update.sh