Update .gitea/workflows/hugo-build.yml

This commit is contained in:
2025-06-09 09:42:55 -05:00
parent aaedcd5856
commit de94b2803a

View File

@ -14,17 +14,17 @@ jobs:
with: with:
submodules: recursive # Fetch Hugo themes (true OR recursive) submodules: recursive # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Update submodules
run: |
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"
git push
- name: Install Hugo - name: Install Hugo
uses: peaceiris/actions-hugo@v3 uses: peaceiris/actions-hugo@v3
with: with:
hugo-version: 'latest' hugo-version: 'latest'
# extended: true # extended: true
- name: Build - name: Build
run: hugo --minify run: hugo --minify
- name: Commit changes
run: |
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"
git push