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:
2222 run: |
2323 pgit --out ./public --label pgit --desc "static site generator for git" --clone-url "https://github.com/picosh/pgit.git" --revs main
2424 pgit --out ./public --assets
25+ - name: Set outputs
26+ id: vars
27+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
2528 - name: publish to pgs
2629 uses: picosh/pgs-action@main
2730 with:
2831 user: erock
2932 key: ${{ secrets.PRIVATE_KEY }}
3033 src: './public/*'
31- project: 'git'
34+ project: "git-${{ steps.vars.outputs.sha_short }}"
35+ promote: "git"