peaceiris / actions-hugo

GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
https://github.com/marketplace/actions/hugo-setup
MIT License
1.38k stars 80 forks source link

Multiple static folders not working #556

Closed keenedge closed 2 years ago

keenedge commented 2 years ago

Checklist

Describe your question

My config.toml defines two static folder like this:

staticDir = ['static','content\projects\home-lab\static']

Locally hugo builds the second static folder into the root of the "public" folder. which works correctly.

when this action build and deploys my pages it does not build the second static folder into the output files.

Relevant links

Public repository: https://github.com/keenedge/keenedge.github.io

hugo config: https://github.com/keenedge/keenedge.github.io/blob/main/config.toml

YAML config:    
YAML workflow: https://github.com/keenedge/keenedge.github.io/blob/main/.github/workflows/gh-pages.yml

Relevant log output

Sorry, I don't know where to find the action log file

Additional context.

Pleae let me know if you need any other info

peaceiris commented 2 years ago

Your local environment is Windows and the CI environment is Linux (Ubuntu).

baseURL = "https://kb.isle.net/"
languageCode = "en-us"
title = "My New Hugo Site"
- staticDir = ['static','content\projects\home-lab\static']
+ staticDir = ['static','content/projects/home-lab/static']

Please use / for Unix-like systems as the file path format, use \ for Windows.

keenedge commented 2 years ago

OMG. I can't believe it. You are sooo right. Thanks very much.