diff --git a/.github/workflows/workflow.yaml b/.github/workflows/docs.yaml similarity index 81% rename from .github/workflows/workflow.yaml rename to .github/workflows/docs.yaml index 981c2d9..2cf8d35 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/docs.yaml @@ -19,8 +19,11 @@ jobs: with: go-version: 1.19 + - name: Install make + run: sudo apt update && sudo apt install build-essential + - name: Generate CONFIG.md - run: go run extras/generate.go + run: make docs - name: Commit CONFIG.md uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/Makefile b/Makefile index afea018..aa7af13 100644 --- a/Makefile +++ b/Makefile @@ -38,3 +38,6 @@ darwin-arm64: windows-amd64.exe: GOOS=windows GOARCH=amd64 \ ${BUILD} -o bin/gspt-windows-amd64.exe + +docs: + go run extras/generate.go