Commit e5eed79
Eric Bower
·
2023-08-10 12:05:14 -0400 EDT
parent 542281f
use sftp
1 files changed,
+4,
-7
+4,
-7
| ... | ... | @@ -18,10 +18,7 @@ jobs: | |
| 18 | 18 | id: vars | |
| 19 | 19 | run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| 20 | 20 | - name: upload to pgs | |
| 21 | - | uses: appleboy/scp-action@v0.1.4 | |
| 22 | - | with: | |
| 23 | - | host: pgs.sh | |
| 24 | - | username: erock | |
| 25 | - | key: ${{ secrets.PRIVATE_KEY }} | |
| 26 | - | source: "public/*" | |
| 27 | - | target: /git-${{ steps.vars.outputs.sha_short }} | |
| 21 | + | run: | | |
| 22 | + | echo -e "${{ secrets.PRIVATE_KEY }}" >__TEMP_INPUT_KEY_FILE | |
| 23 | + | chmod 600 __TEMP_INPUT_KEY_FILE | |
| 24 | + | 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 }} |