Files
hugo-richard/.gitea/workflows/hugo-build.yml
richardoswald 5b2068a04a
Some checks failed
Hugo Update Pipeline / Explore-Gitea-Actions (push) Failing after 5s
Update .gitea/workflows/hugo-build.yml
2025-06-15 12:53:39 -05:00

33 lines
1.1 KiB
YAML

name: Hugo Update Pipeline
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
workflow_dispatch:
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: echo dispatch inputs
run: echo ${{ inputs.additionalProp1 }}
- name: Check out code
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
token: ${{ secret.PAT_TOKEN }}
- name: Update submodules
run: |
git pull
git config --global user.email "${{ gitea.actor }}.users.noreply.git.theoswalds.com"
git config --global user.name "${{ gitea.actor }}"
git submodule update --init --recursive --remote -f
git commit -am "updating submodules" || true
git push
- name: Install Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo --minify