Files
paul-loedige 8da64e4752
Deploy Hugo Site / build (push) Successful in 56s
changed location of website output in gitea runner
2026-04-20 00:07:23 +09:00

34 lines
609 B
YAML

# gitea/actions/hugo-deploy.yml
name: Deploy Hugo Site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Change to Repo Directory
run: cd $GITEA_WORKSPACE
- name: Install Hugo
run: |
apt-get update
apt-get install -y hugo
- name: Build Hugo Site
run: hugo --minify --config hugo.toml -d /output
- name: Deploy Hugo Site
run: docker cp /output/. gitea-runner:/output/website