- commit
- d409522
- parent
- e5eed79
- author
- Eric Bower
- date
- 2023-08-10 16:30:58 +0000 UTC
gha edits
1 files changed,
+6,
-4
+6,
-4
1@@ -1,6 +1,8 @@
2 name: static
3-on: push
4-
5+on:
6+ push:
7+ branches:
8+ - main
9 jobs:
10 static:
11 runs-on: ubuntu-latest
12@@ -11,7 +13,7 @@ jobs:
13 go-version: '1.20'
14 - run: go get github.com/picosh/pgit
15 - run: go install github.com/picosh/pgit
16- - run: pgit --out ./public --label pgit --revs main,HEAD
17+ - run: pgit --out ./public --label pgit --revs main
18 - run: pgit --out ./public --assets
19 - run: ssh -V
20 - name: Set outputs
21@@ -21,4 +23,4 @@ jobs:
22 run: |
23 echo -e "${{ secrets.PRIVATE_KEY }}" >__TEMP_INPUT_KEY_FILE
24 chmod 600 __TEMP_INPUT_KEY_FILE
25- 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