-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1012 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
36
37
38
39
40
name: Deploy Hugo Site
on:
push:
branches:
- master # Adjust the branch name if needed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
ref: master
- name: Get Theme
run: git submodule update --init --recursive
- name: Update theme to Latest commit
run: git submodule update --remote --merge
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.113.0'
- name: Build Hugo Site
run: hugo
- name: Deploy to Server
uses: easingthemes/ssh-deploy@v2
with:
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
TARGET: "/home/nawanmyi/domains/nawan.my.id/public_html"
SOURCE: "public/"
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-avz --delete"