try importing via hugo modules

This commit is contained in:
Adora Laura Kalb 2024-07-12 12:30:17 +02:00
parent 7c26d9b8b7
commit 55b1193ecd
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8
2 changed files with 2 additions and 36 deletions

View file

@ -1,34 +0,0 @@
name: Build with Hugo
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
hugo-version:
- 'latest'
- '0.124.0'
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: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ matrix.hugo-version }}
extended: true
- name: Run Hugo
working-directory: exampleSite
run: hugo --themesDir ../..
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public

4
go.mod
View file

@ -1,3 +1,3 @@
module github.com/alex-shpak/hugo-book module code.lila.network/adoralaura/hugo-book-theme
go 1.16 go 1.22.2