aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-11 01:41:24 -0500
committerBobby <[email protected]>2022-11-11 01:41:24 -0500
commita73d453bd776ae593984141e53be1c4e9a6d4625 (patch)
treedf7093a3a8ae4d5a848e18fdf1ead86ff748d6bc
parent9550b6a518544ec88f7d34bfd27ae88d9a31d232 (diff)
downloadthatcomputerscientist-a73d453bd776ae593984141e53be1c4e9a6d4625.tar.xz
thatcomputerscientist-a73d453bd776ae593984141e53be1c4e9a6d4625.zip
action for ssh deploy
-rw-r--r--.github/workflows/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..b9e73c52
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -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 ssh key
+ uses: appleboy/ssh-action@master
+ with:
+ host: ${{ secrets.HOST }}
+ username: ${{ secrets.USERNAME }}
+ key: ${{ secrets.KEY_ED25519 }}
+ port: ${{ secrets.PORT }}
+ script: sh /home/ubuntu/deploy.sh \ No newline at end of file