Gitea Hugo build action

This YAML implements an action to build a Hugo site in a Gitea CI/CD pipeline.

It requires that you add a "hugo:docker://hugomods/hugo:latest" label to your runner, as described in How to add more labels to docker-based Gitea act_runner.

name: Deploy
run-name: Deploying homepage
on: [push]

jobs:
  Build-Hugo:
    runs-on: hugo
    steps:
      # NOTE: hugo:latest image only has /bin/sh, not bash
      # Build the site
      - name: Checkout
        uses: actions/checkout@v4
        with:
          submodules: true
      - name: Build site
        run: hugo -F
        shell: sh
      - name: Upload site as artifact
        uses: actions/upload-artifact@v3
        with:
          name: hugo-site
          path: public
          include-hidden-files: true