-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1019 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy WhatsApp bot
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code 🖥️
uses: actions/checkout@v3
# - name: Upload with rsync 🔁
# uses: burnett01/[email protected]
# with:
# switches: -avzr --delete
# path: ./
# remote_path: /root/wabot
# remote_host: ${{ secrets.SERVER_IP }}
# remote_port: ${{ secrets.SSH_PORT }}
# remote_user: ${{ secrets.SERVER_USER }}
# remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
# Execute command ke VPS
- name: Execute Command ☣️
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_PASS }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SERVER_PORT }}
script: |
cd /root/wabot
go build main.go