Commit d409522

Eric Bower  ·  2023-08-10 12:30:58 -0400 EDT
parent e5eed79
gha edits
1 files changed,  +6, -4
+6, -4
......@@ -1,6 +1,8 @@
11 name: static
2-on: push
3-
2+on:
3+ push:
4+ branches:
5+ - main
46 jobs:
57 static:
68 runs-on: ubuntu-latest
......@@ -11,7 +13,7 @@ jobs:
1113 go-version: '1.20'
1214 - run: go get github.com/picosh/pgit
1315 - run: go install github.com/picosh/pgit
14- - run: pgit --out ./public --label pgit --revs main,HEAD
16+ - run: pgit --out ./public --label pgit --revs main
1517 - run: pgit --out ./public --assets
1618 - run: ssh -V
1719 - name: Set outputs
......@@ -21,4 +23,4 @@ jobs:
2123 run: |
2224 echo -e "${{ secrets.PRIVATE_KEY }}" >__TEMP_INPUT_KEY_FILE
2325 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 }}
26+ scp -s -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -r ./public/* erock@pgs.sh:/git