From a73d453bd776ae593984141e53be1c4e9a6d4625 Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 11 Nov 2022 01:41:24 -0500 Subject: action for ssh deploy --- .github/workflows/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github') 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 -- cgit v1.2.3