From 10aab63a8fe4a6ca11e46dd97c3e15e5605224b8 Mon Sep 17 00:00:00 2001 From: watson Date: Mon, 21 Jul 2025 12:59:38 +0200 Subject: [PATCH] Test Commit for Auto Deploy Action --- .forgejo/workflows/demo.yaml | 6 ------ .forgejo/workflows/deploy.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 6 deletions(-) delete mode 100644 .forgejo/workflows/demo.yaml create mode 100644 .forgejo/workflows/deploy.yaml diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml deleted file mode 100644 index f05e4d2..0000000 --- a/.forgejo/workflows/demo.yaml +++ /dev/null @@ -1,6 +0,0 @@ -on: [push] -jobs: - test: - runs-on: docker - steps: - - run: echo All good! \ No newline at end of file diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..f7ac6ee --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,30 @@ +name: Deploy Hugo Site + +on: + push: + branches: [main] + +jobs: + build: + runs-on: docker + container: + image: alpine:3.20 + + steps: + - name: Install dependencies and Hugo + run: | +# apk add --no-cache curl bash git libc6-compat + + # 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/