From 249de5316b211cf0d3e0de82f28644407fa0118c Mon Sep 17 00:00:00 2001 From: Alexander Pape <300609+Macavity@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:44:10 +0100 Subject: [PATCH] Update production.yml --- .github/workflows/production.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 6dcfda6..9c06518 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -8,15 +8,17 @@ jobs: runs-on: ubuntu-latest environment: production + strategy: + matrix: + node-version: [18.x] + steps: - name: 🚚 Get Latest Code - uses: actions/checkout@v4 + uses: actions/checkout@v3 + with: + fetch-depth: 0 ## —— Node ———————————————————————————————————————————————— - - name: 🛠️ Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: '18' - name: 🛠 Install Dependencies run: npm install @@ -37,7 +39,7 @@ jobs: username: ${{ secrets.SFTP_USERNAME }} password: ${{ secrets.SFTP_PASSWORD }} port: 22 - source: "/*" + source: "./*" target: ${{ secrets.DEPLOYMENT_PATH }} clear-cache: @@ -51,8 +53,8 @@ jobs: uses: appleboy/ssh-action@master with: host: ${{ secrets.SERVER_HOST }} - username: ${{ secrets.SSH_USERNAME }} - password: ${{ secrets.SSH_PASSWORD }} + username: ${{ secrets.SFTP_USERNAME }} + password: ${{ secrets.SFTP_PASSWORD }} port: 22 script: | cd ${{ secrets.DEPLOYMENT_PATH }}