-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend_dirs
cann't process relative path
#78
Comments
Taking a look at the source, I think this issue stems from the following line: https://github.com/hexojs/hexo-deployer-git/blob/master/lib/deployer.js#L130 When
instead of
|
Workaround:Set up two deploy configurations, where the first one references the true location of your external directories, and the second refers to those directories within the hexo folder (since the first deploy will have copied them there for you). Note: I point the first deploy to a dummy branch called deploy:
- type: git
repo: <repo>
branch: temp
extend_dirs:
- ../src
- ../docs
- type: git
repo: <repo>
branch: gh-pages
extend_dirs:
- src
- docs |
Thanks for submitting the issue and its details. I think this may be a bug. |
I'have same problem, the bug it was fixed? |
hexo-deployer-git/lib/deployer.js Line 122 in 880a3c3
|
extend_dirs
cann't process relative path
Hello,
I'm trying to use
extend_dirs
to publish a couple directories that live outside my hexo website (which is contained in a subdirectory of my main repo).When I run
hexo deploy
, the directories I've identified are copied into the root of my website directory, but never get deployed. I think this is because only thepublic
folder is being added to the.deploy_git
directory. What is needed to actually deploy the contents of theextend_dirs
?I've included my file structure and deployment configuration below.
Thanks!
EDIT: I tested this by creating a directory inside my website folder and referenced that in
extend_dirs
, and it deploys as expected. It seems this issue only occurs when the directories exist outside the website folder.File structure:
_config.yml:
The text was updated successfully, but these errors were encountered: