Skip to content

Commit

Permalink
chore: Fix deploy job
Browse files Browse the repository at this point in the history
Signed-off-by: koooge <[email protected]>
  • Loading branch information
koooge committed Aug 16, 2024
1 parent 39f8d16 commit 50707a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Build
run: |
export BASE_URL="https://koooge.github.io/hugo-theme-geppaku/"
hugo --gc --minify --config ./exampleSite/config/test/config.toml --themesDir ./ --layoutDir ./layouts --baseURL "${BASE_URL}"
hugo --gc --minify --configDir ./exampleSite/config --config ./exampleSite/config/test/config.toml --themesDir ./ --layoutDir ./layouts --baseURL "${BASE_URL}"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,9 @@ tags = [
+++
Hello Hugo!
```

## Test

```sh
hugo server --configDir ./exampleSite/config --config ./exampleSite/config/test/config.toml --themesDir ./ --layoutDir ./layouts
```
4 changes: 2 additions & 2 deletions exampleSite/config/test/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
staticDir = ["../static", "../images"]
assetDir = "../assets"
staticDir = ["./static", "./images"]
assetDir = "./assets"
canonifyURLs = true

0 comments on commit 50707a8

Please sign in to comment.