-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 887 Bytes
/
cd.yml
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
37
38
39
name: Build+deploy website
on:
push:
branches: [master]
paths-ignore:
- '.gitignore'
- '.travis.yml'
- 'README.md'
- '*.sh'
- '*.json'
pull_request:
branches: [master]
types: [merged]
jobs:
build-deploy:
runs-on: ubuntu-latest
environment: 'TkkrLab website'
steps:
- name: Git Checkout (with submodules)
uses: actions/[email protected]
with:
submodules: true
- name: Build
run: bash build.sh
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: './public/'
REMOTE_HOST: ${{ vars.HOST }}
REMOTE_USER: ${{ vars.SSH_USER }}
REMOTE_PORT: ${{ vars.SSH_PORT }}
TARGET: ${{ vars.WEBROOT }}