I have hidden dotfiles in my dist/ directory that need to get copied to the server. My deployment step looks like this:
name: Deploy to development server
deployment: development
script:
- pipe: atlassian/scp-deploy:1.0.1
variables:
USER: $SSH_USER
SERVER: $SSH_HOST
REMOTE_PATH: $TARGET_PATH
LOCAL_PATH: 'dist/*'
But this setup will (understandably) not copy dotfiles to the server. There are two possible solutions that come to my mind:
- Add more than one LOCAL_PATH and set the second one to 'dist/.*'
- Copy the complete dist/ directory over to the server, then manually move the files one directory level higher, than delete dist/ directory.
What is best practice in this case? How could it be done?
Thanks in advance!