Hi,
Thanks for this great action. I tried scp-action and it is working really well except, I want to upload whole content inside the directory and if I try it using below yml it isn't working:
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download artifacts from build
uses: actions/download-artifact@v2
with:
name: distdir
path: documentation
- name: List current dir after download
shell: bash
run: ls
- name: List documentation content after download
shell: bash
run: ls documentation
- name: Upload dist content via scp
uses: appleboy/scp-action@master
env:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
with:
source: documentation/*
target: ${{ secrets.TARGETDIR }}
rm: true
List current dir after download outputs:
documentation
src
package.json
... other files
List documentation content after download outputs:
index.html
favicon.icon
... other files
My target dir is /var/www/{somePath}/demo/{themeName}/documentation and I want to paste all content of documentation dir to the /var/www/{somePath}/demo/{themeName}/documentation but using source: documentation/* isn't working.
Also, I am using rm: true because I want to remove the existing target dir /var/www/{somePath}/demo/{themeName}/documentation before uploading.
Regards.
Hi,
Thanks for this great action. I tried
scp-actionand it is working really well except, I want to upload whole content inside the directory and if I try it using below yml it isn't working:List current dir after downloadoutputs:List documentation content after downloadoutputs:My target dir is
/var/www/{somePath}/demo/{themeName}/documentationand I want to paste all content of documentation dir to the/var/www/{somePath}/demo/{themeName}/documentationbut usingsource: documentation/*isn't working.Also, I am using
rm: truebecause I want to remove the existing target dir/var/www/{somePath}/demo/{themeName}/documentationbefore uploading.Regards.