Commit 87e3e38
Eric Bower
·
2023-08-13 10:18:17 -0400 EDT
parent 50d81f2
use promotion concept
1 files changed,
+5,
-1
+5,
-1
| ... | ... | @@ -22,10 +22,14 @@ jobs: | |
| 22 | 22 | run: | | |
| 23 | 23 | pgit --out ./public --label pgit --desc "static site generator for git" --clone-url "https://github.com/picosh/pgit.git" --revs main | |
| 24 | 24 | pgit --out ./public --assets | |
| 25 | + | - name: Set outputs | |
| 26 | + | id: vars | |
| 27 | + | run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| 25 | 28 | - name: publish to pgs | |
| 26 | 29 | uses: picosh/pgs-action@main | |
| 27 | 30 | with: | |
| 28 | 31 | user: erock | |
| 29 | 32 | key: ${{ secrets.PRIVATE_KEY }} | |
| 30 | 33 | src: './public/*' | |
| 31 | - | project: 'git' | |
| 34 | + | project: "git-${{ steps.vars.outputs.sha_short }}" | |
| 35 | + | promote: "git" |