-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (24 loc) · 761 Bytes
/
deploy.yml
File metadata and controls
30 lines (24 loc) · 761 Bytes
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
name: Deploy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Copy repository contents via scp
uses: appleboy/scp-action@master
with:
HOST: ${{ secrets.SSH_C_HOST }}
USERNAME: ${{ secrets.SSH_C_USERNAME }}
PORT: ${{ secrets.SSH_C_PORT }}
KEY: ${{ secrets.SSH_C_KEY }}
source: "."
target: "/usr/share/nginx/html/corelayout.com"
- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_C_HOST }}
USERNAME: ${{ secrets.SSH_C_USERNAME }}
PORT: ${{ secrets.SSH_C_PORT }}
KEY: ${{ secrets.SSH_C_KEY }}
script: ls