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 @@ | |
| 1 | 1 | name: static | |
| 2 | - | on: push | |
| 3 | - | ||
| 2 | + | on: | |
| 3 | + | push: | |
| 4 | + | branches: | |
| 5 | + | - main | |
| 4 | 6 | jobs: | |
| 5 | 7 | static: | |
| 6 | 8 | runs-on: ubuntu-latest |
| ... | ... | @@ -11,7 +13,7 @@ jobs: | |
| 11 | 13 | go-version: '1.20' | |
| 12 | 14 | - run: go get github.com/picosh/pgit | |
| 13 | 15 | - 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 | |
| 15 | 17 | - run: pgit --out ./public --assets | |
| 16 | 18 | - run: ssh -V | |
| 17 | 19 | - name: Set outputs |
| ... | ... | @@ -21,4 +23,4 @@ jobs: | |
| 21 | 23 | run: | | |
| 22 | 24 | echo -e "${{ secrets.PRIVATE_KEY }}" >__TEMP_INPUT_KEY_FILE | |
| 23 | 25 | 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 |