aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/node.js.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/node.js.yml')
-rw-r--r--.github/workflows/node.js.yml11
1 files 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 }}"