diff --git a/.gitea/workflows/hugo-build.yml b/.gitea/workflows/hugo-build.yml index 00e3b0f..dd5e3de 100644 --- a/.gitea/workflows/hugo-build.yml +++ b/.gitea/workflows/hugo-build.yml @@ -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 \ No newline at end of file + run: hugo --minify \ No newline at end of file