Files
Blog_and_Personal_Page/.gitea/workflows/hugo-deploy.yaml
T
paul-loedige ac9f810e70 more debugging
2024-11-11 19:42:36 +01:00

38 lines
738 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
- name: Change to Repo Directory
run: cd $GITEA_WORKSPACE
- name: Install Hugo
run: |
apt-get update
apt-get install -y hugo
- name: Debug Problems
run: |
apt-get install -y tree
tree
- name: Build Hugo Site
run: hugo --minify --config hugo.toml
- name: Deploy to Hugo Container
run: |
rsync -avz --delete public/ /mnt/hugo/
env:
HUGO_CONTAINER_PATH: /mnt/hugo/
GITEA_RUNNER_MOUNT_PATH: ./hugo/public:/mnt/hugo