Skip to content

Commit

Permalink
Update hugo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwaskoff authored Mar 18, 2024
1 parent 8f94336 commit 773f036
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Checkout submodules
shell: bash
run: |
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.114.0'
hugo-version: '0.120.4'
extended: true

- name: Build
run: hugo --minify -s exampleSite --themesDir ../..
run: |
hugo \
--minify \
--themesDir ../.. \
--baseURL "${{ steps.pages.outputs.base_url }}/"
working-directory: ./exampleSite

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: pages
publish_dir: ./exampleSite/public

0 comments on commit 773f036

Please sign in to comment.