Skip to content

Commit

Permalink
ci: try fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Sep 6, 2024
1 parent d0fd3ed commit 9bc08e4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
hugo-version: "latest"
extended: true

- name: Checkout
Expand All @@ -52,7 +52,7 @@ jobs:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo -s exampleSite --minify --gc --themesDir ../.. \
hugo -s exampleSite --minify --gc --themesDir .. \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

Landing page for xvowl.

## Development

```bash
pnpm i

pnpm exec hugo version
# Make sure that you have the version ...+extended in the output if not do following workaround

rm -rf node_modules/hugo-bin/vendor
pnpm exec node ./node_modules/hugo-bin/lib/install.js

```

## Credits

https://github.com/tomowang/hugo-theme-tailwind
2 changes: 1 addition & 1 deletion exampleSite/config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enableInlineShortcodes = true
# prevent build failures when using Hugo's Instagram shortcode due to deprecated Instagram API.
# See https://github.com/gohugoio/hugo/issues/7228#issuecomment-714490456
ignoreErrors = ["error-remote-getjson"]
theme = "hugo-theme-tailwind"
theme = "."
enableGitInfo = true

[markup]
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"scripts": {
"build": "hugo --minify -s exampleSite --gc --themesDir=../..",
"dev-hugo": "hugo server -s exampleSite --gc --themesDir=../..",
"build": "hugo --minify -s exampleSite --gc --themesDir=..",
"dev-hugo": "hugo server -s exampleSite --gc --themesDir=..",
"dev-tailwind": "npx tailwindcss -i assets/css/main.css -o assets/css/index.css --watch",
"dev": "run-p dev-hugo dev-tailwind"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.15",
"hugo-bin": "^0.131.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.10"
},
"dependencies": {
"hugo-bin": "^0.131.1"
},
"hugo-bin": {
"buildTags": "extended"
}
Expand Down
7 changes: 3 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9bc08e4

Please sign in to comment.