diff --git a/.github/workflows/publish-versioned-api-ref.yml b/.github/workflows/publish-versioned-api-ref.yml index d6b5aee4..9f34d7de 100644 --- a/.github/workflows/publish-versioned-api-ref.yml +++ b/.github/workflows/publish-versioned-api-ref.yml @@ -26,6 +26,11 @@ jobs: repository: ${{ github.repository }}.wiki path: wiki + - uses: actions/setup-go@v5 + name: Install Go + with: + go-version-file: messaging-topology-operator/go.mod + - name: Generate API reference run: make -C messaging-topology-operator api-reference @@ -42,4 +47,5 @@ jobs: echo "$REGENERATED_SIDEBAR" > Wiki_Sidebar.md git add ./API_Reference_${{ steps.get_version.outputs.VERSION }}.asciidoc git add ./Wiki_Sidebar.md - git commit -m "Publish version ${{ steps.get_version.outputs.VERSION }} API Reference" && git push + git commit -m "Publish version ${{ steps.get_version.outputs.VERSION }} API Reference" + git push diff --git a/Makefile b/Makefile index ea511d66..b8e576a0 100644 --- a/Makefile +++ b/Makefile @@ -149,7 +149,7 @@ manifests: install-tools # Generate API reference documentation .PHONY: api-reference -api-reference: +api-reference: install-tools crd-ref-docs \ --source-path ./api \ --config ./docs/api/autogen/config.yaml \