Skip to content

I want to place it in the designated folder of target warehouse, not the root directory. How do I do that? #65

Discussion options

You must be logged in to vote

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 path cat/dog/bar then you would do something like this:

Create a file .clear-target-files that has:

cat/dog/bar/**/*

And add a workflow that looks like:

jobs:
  deploy:
    steps:
    #...
    - name: replicate directory structure
      run: |
        mkdir -p remote/cat/dog/bar
        cp …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #54 on February 08, 2022 16:37.