- commit
- 87e3e38
- parent
- 50d81f2
- author
- Eric Bower
- date
- 2023-08-13 14:18:17 +0000 UTC
use promotion concept
1 files changed,
+5,
-1
+5,
-1
1@@ -22,10 +22,14 @@ jobs:
2 run: |
3 pgit --out ./public --label pgit --desc "static site generator for git" --clone-url "https://github.com/picosh/pgit.git" --revs main
4 pgit --out ./public --assets
5+ - name: Set outputs
6+ id: vars
7+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
8 - name: publish to pgs
9 uses: picosh/pgs-action@main
10 with:
11 user: erock
12 key: ${{ secrets.PRIVATE_KEY }}
13 src: './public/*'
14- project: 'git'
15+ project: "git-${{ steps.vars.outputs.sha_short }}"
16+ promote: "git"