repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

commit
8cab5ce
parent
b011c80
author
Eric Bower
date
2024-12-19 14:28:16 -0500 EST
chore: rm workflow
1 files changed,  +0, -41
D .github/workflows/static.yml
+0, -41
 1@@ -1,41 +0,0 @@
 2-name: static
 3-on:
 4-  push:
 5-    branches:
 6-      - main
 7-jobs:
 8-  static:
 9-    runs-on: ubuntu-latest
10-    steps:
11-      - uses: actions/checkout@v3
12-        with:
13-          # need entire history
14-          fetch-depth: 0
15-      - uses: actions/setup-go@v4
16-        with:
17-          go-version: '1.22'
18-      - name: install pgit
19-        run: |
20-          go install github.com/picosh/pgit@v1
21-      - name: generate site
22-        run: |
23-          pgit \
24-            --out ./public \
25-            --label pgit \
26-            --desc "static site generator for git" \
27-            --clone-url "https://github.com/picosh/pgit.git" \
28-            --home-url "https://git.erock.io" \
29-            --revs main
30-      - name: Set outputs
31-        id: vars
32-        run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
33-      - name: publish to pgs
34-        uses: picosh/pgs-action@v3
35-        with:
36-          user: pico
37-          key: ${{ secrets.PRIVATE_KEY }}
38-          src: './public/'
39-          project: "git-pgit-${{ steps.vars.outputs.sha_short }}"
40-          promote: "git-pgit"
41-          retain: "git-pgit-"
42-          retain_num: 1