repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

starfx / .github / workflows
Eric Bower · 27 Jul 24

static.yml

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