We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62764f commit 8c75710Copy full SHA for 8c75710
.github/workflows/nodejs.yml
@@ -29,8 +29,18 @@ jobs:
29
needs: build
30
runs-on: ubuntu-latest
31
steps:
32
- - name: Checkout code
33
- uses: actions/checkout@v3
+ - name: Deploy to Server 🌐
+ uses: appleboy/[email protected]
34
+ with:
35
+ host: ${{ secrets.SERVER_IP }}
36
+ username: ${{ secrets.SERVER_USER }}
37
+ key: ${{ secrets.SSH_PRIVATE_KEY }}
38
+ port: 22
39
+ script: |
40
+ cd ~/CI-CD-Integration-IN-NodeJS
41
+ git pull origin master
42
+ npm install
43
+ pm2 restart test_server
44
45
- name: Deploy to Server (Simulation)
46
run: echo "Pretend we're deploying the app now!"
0 commit comments