diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 9eac02231d..67aeffd653 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -137,3 +137,18 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + + upload-docs: + needs: goreleaser + if: github.event_name == 'release' + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + + - run: | + make openrpc-gen > openrpc.json + gh release upload ${{github.event.release.tag_name}} openrpc.json + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Makefile b/Makefile index 32f2a640f4..c05c777f03 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,6 @@ pb-gen: ## openrpc-gen: Generate OpenRPC spec for Celestia-Node's RPC api openrpc-gen: - @echo "--> Generating OpenRPC spec" @go run ${LDFLAGS} ./cmd/celestia docgen .PHONY: openrpc-gen