try different mode
@@ -36,8 +36,10 @@ jobs:
- name: Create a ssh key
run: |
mkdir ~/.ssh
- echo "${{ secrets.SCP_PRIVATE_KEY }}" >> ~/.ssh/id_rsa
- echo "${{ secrets.SCP_PUBLIC_KEY }}" >> ~/.ssh/id_rsa.pub
+ echo "${{ secrets.SCP_PRIVATE_KEY }}" > ~/.ssh/id_rsa
+ echo "${{ secrets.SCP_PUBLIC_KEY }}" > ~/.ssh/id_rsa.pub
- name: Copy javadocs to OpenCB server
+ env:
+ RSYNC_PASSWORD: ${{ secrets.SCP_SITE_PASSWORD }}
# run: sshpass -p "${{ secrets.SCP_SITE_PASSWORD }}" rsync -av --delete target/site/apidocs/* ${{ secrets.SCP_SITE_USER }}@128.232.224.128:/mnt/data/opencb/cellbase/javadocs/${{ steps.get_version.outputs.VERSION }}
- run: rsync -av --delete target/site/apidocs/* ${{ secrets.SCP_SITE_USER }}@128.232.224.128:/mnt/data/opencb/cellbase/javadocs/${{ steps.get_version.outputs.VERSION }}
+ run: rsync -av --delete target/site/apidocs/* ${{ secrets.SCP_SITE_USER }}@128.232.224.128::/mnt/data/opencb/cellbase/javadocs/${{ steps.get_version.outputs.VERSION }}
