Commit 6fcf1f8

Eric Bower  ·  2023-08-10 11:39:05 -0400 EDT
parent 6f6844d
upload to static site
1 files changed,  +6, -0
+6, -0
......@@ -13,3 +13,9 @@ jobs:
1313 - run: go install github.com/picosh/pgit
1414 - run: pgit --out ./public --label pgit --revs main,HEAD
1515 - run: pgit --out ./public --assets
16+ - run: scp -R ./public/* erock@pgs.sh:/git-${{ steps.vars.outputs.sha_short }}
17+ - 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 StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -r ./public/* erock@pgs.sh:/git-${{ steps.vars.outputs.sha_short }}