From c9da45ec69d8916074d77f266406332bf92a2631 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Sep 2022 23:57:18 +0530 Subject: Updates Github Actions Config --- .github/workflows/node.js.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 47fa512..f740856 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,12 +27,13 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present - - name: Publish - uses: azurystudio/deploy-action@v0 + - name: Copying files to server + uses: appleboy/scp-action@master with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USER }} - privateKey: ${{ secrets.SSHKEY }} - destination: ${{ secrets.SSH_DIR }} + key: ${{ secrets.SSHKEY }} passphrase: ${{ secrets.SSH_PASSPHRASE }} - directory: /public + rm: true + source: "public/" + target: "${{ secrets.SSH_DIR }}" -- cgit v1.2.3