Update .gitea/workflows/hugo-build.yml
This commit is contained in:
@ -14,17 +14,17 @@ jobs:
|
||||
with:
|
||||
submodules: recursive # Fetch Hugo themes (true OR recursive)
|
||||
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
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
# extended: true
|
||||
- name: Build
|
||||
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
|
||||
run: hugo --minify
|
Reference in New Issue
Block a user