repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

commit
542281f
parent
82325b0
author
Eric Bower
date
2023-08-10 15:52:28 +0000 UTC
try scp action
1 files changed,  +10, -4
M .github/workflows/static.yml
+10, -4
 1@@ -14,8 +14,14 @@ jobs:
 2       - run: pgit --out ./public --label pgit --revs main,HEAD
 3       - run: pgit --out ./public --assets
 4       - run: ssh -V
 5+      - name: Set outputs
 6+        id: vars
 7+        run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
 8       - name: upload to pgs
 9-        run: |
10-          echo -e "${{ secrets.PRIVATE_KEY }}" >__TEMP_INPUT_KEY_FILE
11-          chmod 600 __TEMP_INPUT_KEY_FILE
12-          scp -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -r ./public/* erock@pgs.sh:/git-tmp
13+        uses: appleboy/scp-action@v0.1.4
14+        with:
15+          host: pgs.sh
16+          username: erock
17+          key: ${{ secrets.PRIVATE_KEY }}
18+          source: "public/*"
19+          target: /git-${{ steps.vars.outputs.sha_short }}