From 9dcd9db166e3825ec550937c11a7a87a71640f52 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 1 Jun 2020 23:36:37 +0200 Subject: [PATCH] update node.js.yml --- .github/workflows/node.js.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e47e1a7..8c5d43a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,12 +12,11 @@ jobs: - name: Deploy uses: appleboy/scp-action@master - env: - HOST: ${{ secrets.SSH_HOST }} - USERNAME: ${{ secrets.SSH_USERNAME }} - PORT: ${{ secrets.SSH_PORT }} - KEY: ${{ secrets.SSH_KEY }} with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + port: ${{ secrets.SSH_PORT }} + key: ${{ secrets.SSH_KEY }} source: "." target: "/home/arthur/website" @@ -25,25 +24,25 @@ jobs: uses: appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }} - USERNAME: ${{ secrets.SS_USERNAME }} - PORT: ${{ secrets.SSH_PORT }} - KEY: ${{ secrets.SSH_KEY }} + username: ${{ secrets.SS_USERNAME }} + port: ${{ secrets.SSH_PORT }} + key: ${{ secrets.SSH_KEY }} script: yarn install - name: Build uses: appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }} - USERNAME: ${{ secrets.SS_USERNAME }} - PORT: ${{ secrets.SSH_PORT }} - KEY: ${{ secrets.SSH_KEY }} + username: ${{ secrets.SS_USERNAME }} + port: ${{ secrets.SSH_PORT }} + key: ${{ secrets.SSH_KEY }} script: yarn build-all - name: Run uses: appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }} - USERNAME: ${{ secrets.SS_USERNAME }} - PORT: ${{ secrets.SSH_PORT }} - KEY: ${{ secrets.SSH_KEY }} + username: ${{ secrets.SS_USERNAME }} + port: ${{ secrets.SSH_PORT }} + key: ${{ secrets.SSH_KEY }} script: yarn start \ No newline at end of file