Skip to content
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

Fix: custom build dir path #86

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Fix: custom build dir path #86

merged 1 commit into from
Mar 18, 2022

Conversation

dinhtungdu
Copy link
Contributor

It turned out that rsync needs a full directory path with a trailing slash to copy nested files and directories. Without trailing slash, rsync will copy the directory itself.

This PR fix that issue by forcing the BUILD_DIR variable to not has the trailing slash, then add a trailing slash to it when it's used for rsync.

How to test this PR

See https://github.com/dinhtungdu/command-palette/runs/5584834600. I had to add the slash to the BUILD_DIR in the workflow file to make the action deploy changes from the custom build directory.

https://github.com/dinhtungdu/command-palette/blob/ca3f6d972e299007f7c1a0ab4c4e1befb222e00d/.github/workflows/deploy.yml#L16-L24

@dinhtungdu dinhtungdu requested review from a team and peterwilsoncc and removed request for a team March 17, 2022 11:26
Copy link
Contributor

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using %/ makes sense, looks good to me.

@dinhtungdu dinhtungdu merged commit e41f954 into develop Mar 18, 2022
@dinhtungdu dinhtungdu deleted the fix/build-dir-path branch March 18, 2022 04:28
@jeffpaul jeffpaul added this to the 2.1.0 milestone Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants