All checks were successful
Deploy to Git-Pages / build-and-deploy (push) Successful in 21s
32 lines
694 B
YAML
32 lines
694 B
YAML
name: Deploy to Git-Pages
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Setup Hugo
|
|
uses: peaceiris/actions-hugo@v3
|
|
with:
|
|
hugo-version: 'latest'
|
|
extended: true
|
|
|
|
- name: Build Hugo
|
|
run: hugo --minify
|
|
|
|
- name: Deploy to Caddy
|
|
run: |
|
|
# This creates /srv/caddy/sites/wiki on the host
|
|
mkdir -p /deploy/wiki
|
|
|
|
# Clean old files and move new ones
|
|
rm -rf /deploy/wiki/*
|
|
cp -r public/* /deploy/wiki/ |