Skip to content

Commit 5eea4ec

Browse files
committed
Added build + rsync_deploy action
1 parent be80da6 commit 5eea4ec

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: deploy_website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- ".github/workflows/deploy_website.yml"
9+
- "hugo_site/**"
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v6
17+
18+
- name: build
19+
run: make --directory hugo_site build_docker
20+
21+
- name: rsync deployments
22+
uses: burnett01/rsync-deployments@v8
23+
with:
24+
switches: -avzr --delete
25+
path: hugo_site/site/
26+
remote_path: ${{ secrets.REMOTE_PATH }} # ex: /var/www/html/
27+
remote_host: ${{ secrets.REMOTE_HOST }} # ex: example.com
28+
remote_port: ${{ secrets.REMOTE_PORT }} # ex: 22
29+
remote_user: ${{ secrets.REMOTE_USER }} # ex: ubuntu
30+
remote_key: ${{ secrets.REMOTE_PRIVATE_KEY }}

0 commit comments

Comments
 (0)