diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d250da0..8e69ffb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,22 +21,22 @@ jobs: - name: Check Node.js shell: powershell run: | - node --version + node --version - name: Check npm shell: powershell run: | - npm --version + npm --version - name: Install dependencies shell: powershell run: | - npm ci + npm ci - name: Check application shell: powershell run: | - node --check app.js + node --check app.js - name: Deploy application shell: powershell @@ -47,8 +47,12 @@ jobs: New-Item -ItemType Directory -Path $deployPath -Force } + Write-Host "Deploying application..." + Copy-Item -Path ".\*" -Destination $deployPath -Recurse -Force + Write-Host "Restarting Node.js application..." + pm2 restart my-node-app - Write-Host "Deployment completed successfully." + Write-Host "Deployment completed." \ No newline at end of file