-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Failure on copyAssets when using external_repository, publish_dir and destination_dir #410
Comments
Thank you for your feedback on this beta feature!
I am trying to reproduce this error but I have not caught it yet. (Deploy from peaceiris/hugo-test-project to peaceiris/test-hugo-external-repo) Could you share a minimal test set? Or, could you recreate your environment on peaceiris/hugo-test-project? |
Hi there and thanks for all the actions and the quick feedback. I was able to reproduce the problem on two private repositories I created with a blank new hugo site. I'd be happy to invite you to both so you can check it out and get your hands on them. |
Please let me know if there is anything else I can do to help |
Looking at the code it seems to be using the NodeJS 12 default So I assume (haven't tested it) the code in https://github.com/peaceiris/actions-gh-pages/blob/main/src/git-utils.ts#L23 should be done for the target directory. So the code in there should look like const filePublishPath = path.join(publishDir, file);
const fileDestPath = path.join(destDir, file);
await io.cp(filePublishPath, ${fileDestPath}, copyOpts); Could this be? |
#414 seems to fix this issue. Please check the latest deployment I triggered on your private repository. |
Yep, it works. Thank you!!!! |
I really appreciate what you've done! After adding some tests and refactoring, the v3.7.0 will be released. Until then, we can use |
Describe the bug
I am trying to publish a subdirectories content on a given branch on a private repository A onto a remote private repository B into a subfolder. The process fails with an error when the branch already exists with content. It works when the branch does not exist yet.
The reason for this setup is, the generated website will not be hosted via gh-pages on Github but being uploaded to a remote server from the remote private repository B using Github Actions and
SamKirkland/FTP-Deploy-Action
.To Reproduce
main
branchExpected behavior
The copy files process to the empty destination repository should not fail.
Your YAML file
Additional context
The error is thrown here:
actions-gh-pages/src/git-utils.ts
Line 24 in 09b03c0
The text was updated successfully, but these errors were encountered: