-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.03 KB
/
deploy-prod.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
36
name: VCS Production Deployment
on:
push:
branches:
- master
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Secure Copy Repository
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
port: ${{ secrets.DEPLOY_SSH_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
overwrite: true
tar_tmp_path: "/home/souch/tmp/"
source: "src/,public/,index.html,package.json,package-lock.json,tsconfig.json,tsconfig.node.json,vite.config.ts"
target: "/home/souch/html/souchca"
- name: Run Deploy Script
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
port: ${{ secrets.DEPLOY_SSH_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: sh /home/souch/deploy.sh