cheesy-guacamole/.forgejo/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: yaml: line 10: did not find expected key
watson e054d25145
All checks were successful
/ test (push) Successful in 3s
Testing Actions
2025-07-22 17:07:08 +02:00

29 lines
949 B
YAML

name: Deploy Hugo Site
on:
push:
branches: [main]
jobs:
build:
runs-on: docker
steps:
- name: Install dependencies and Hugo
run: |
# apk add --no-cache curl bash git libc6-compat
wget https://github.com/gohugoio/hugo/releases/download/v0.148.1/hugo_extended_0.148.1_linux-amd64.deb
apt-get install -y ./hugo_extended_0.148.1_linux-amd64.deb
hugo version
# Install Hugo (Refer to https://gohugo.io/installation/linux/)
#doas apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
- name: Check out code
uses: actions/checkout@v4
- name: Build Hugo site
run: hugo --minify
# - name: Copy site to host directory
# run: |
# mkdir -p /mnt/host-output/hugo-site # TODO make sure to mount correct directory to actions setup
# cp -r public/* /mnt/host-output/hugo-site/