- commit
- e5eed79
- parent
- 542281f
- author
- Eric Bower
- date
- 2023-08-10 12:05:14 -0400 EDT
use sftp
      1 files changed, 
      +4,
      -7
    
    
  
        +4,
        -7
      
     1@@ -18,10 +18,7 @@ jobs:
 2         id: vars
 3         run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
 4       - name: upload to pgs
 5-        uses: appleboy/scp-action@v0.1.4
 6-        with:
 7-          host: pgs.sh
 8-          username: erock
 9-          key: ${{ secrets.PRIVATE_KEY }}
10-          source: "public/*"
11-          target: /git-${{ steps.vars.outputs.sha_short }}
12+        run: |
13+          echo -e "${{ secrets.PRIVATE_KEY }}" >__TEMP_INPUT_KEY_FILE
14+          chmod 600 __TEMP_INPUT_KEY_FILE
15+          scp -s -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -r ./public/* erock@pgs.sh:/git-${{ steps.vars.outputs.sha_short }}