Commit 542281f
Eric Bower
·
2023-08-10 11:52:28 -0400 EDT
parent 82325b0
try scp action
1 files changed,
+10,
-4
+10,
-4
| ... | ... | @@ -14,8 +14,14 @@ jobs: | |
| 14 | 14 | - run: pgit --out ./public --label pgit --revs main,HEAD | |
| 15 | 15 | - run: pgit --out ./public --assets | |
| 16 | 16 | - run: ssh -V | |
| 17 | + | - name: Set outputs | |
| 18 | + | id: vars | |
| 19 | + | run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| 17 | 20 | - name: upload to pgs | |
| 18 | - | run: | | |
| 19 | - | echo -e "${{ secrets.PRIVATE_KEY }}" >__TEMP_INPUT_KEY_FILE | |
| 20 | - | chmod 600 __TEMP_INPUT_KEY_FILE | |
| 21 | - | scp -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -r ./public/* erock@pgs.sh:/git-tmp | |
| 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 }} |