Update theme and config layout change #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# www.kr.freebsd.org site build | |
# build only; deployment need to be manually done. | |
name: Deploy | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Hugo setup | |
uses: peaceiris/actions-hugo@v2 | |
- name: Hugo build | |
run: HUGO_ENV=production hugo --logLevel info --minify | |
- name: Deploy to www.kr.freebsd.org | |
uses: up9cloud/action-rsync@master | |
env: | |
MODE: push | |
HOST: www.kr.freebsd.org | |
USER: ${{ secrets.WWW_USER }} | |
KEY: ${{ secrets.WWW_SSHKEY }} | |
VERBOSE: true | |
SOURCE: public/ | |
TARGET: /kfug/sites/wwwpub/www.kr.freebsd.org |