I want to place it in the designated folder of target warehouse, not the root directory. How do I do that? #65
-
I want to place it in the designated folder of target warehouse, not the root directory. How do I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's a little bit awkward to do this right now (and I've created an issue here to hopefully simplify it: #70), but you can do this now using something like the following: You would currently need to place the target files in a path in the So if for example you wanted the files in Create a file
And add a workflow that looks like: jobs:
deploy:
steps:
#...
- name: replicate directory structure
run: |
mkdir -p remote/cat/dog/bar
cp -rT foo/bar/ remote/cat/dog/bar/
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
FOLDER: remote
CLEAR_GLOBS_FILE: ".clear-target-files"
#... |
Beta Was this translation helpful? Give feedback.
Hi @Chasen-Zhang
It's a little bit awkward to do this right now (and I've created an issue here to hopefully simplify it: #70), but you can do this now using something like the following:
You would currently need to place the target files in a path in the
FOLDER
directory that matches the desired target path in the remote directory.So if for example you wanted the files in
foo/bar
to be copied to the pathcat/dog/bar
then you would do something like this:Create a file
.clear-target-files
that has:And add a workflow that looks like: