From 13a75d52de5c5a475e5c2e9365f6b65603dd4219 Mon Sep 17 00:00:00 2001 From: nfel Date: Sat, 23 Nov 2024 13:46:10 +0330 Subject: [PATCH] v2: bad dot op in tar Signed-off-by: nfel --- .gitea/workflows/buf-ci.yaml | 3 ++- buf.gen.yaml | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/buf-ci.yaml b/.gitea/workflows/buf-ci.yaml index 78dc617..6395a4d 100644 --- a/.gitea/workflows/buf-ci.yaml +++ b/.gitea/workflows/buf-ci.yaml @@ -22,6 +22,7 @@ jobs: path: ./ - run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest + - run: go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest - run: npm install --save @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf - run: buf --version - run: | @@ -31,7 +32,7 @@ jobs: if [ -n ${{ gitea.ref_name }} ]; then mkdir .res for out in go ts docs; do - tar czf .res/${out}.tar.gz ./stub/${out}/ . + tar czf .res/${out}.tar.gz ./stub/${out}/ curl --user gitea:${{ gitea.token }} \ --upload-file .res/${out}.tar.gz \ ${{ gitea.api_url }}/packages/kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz diff --git a/buf.gen.yaml b/buf.gen.yaml index 8462320..bea5cd2 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -20,9 +20,12 @@ plugins: # - remote: buf.build/protocolbuffers/go:v1.30.0 out: stub/go # NOTE: doc - # - local: protoc-gen-doc - # opt: html,index.html,source_relative - # out: stub/doc + - local: protoc-gen-doc + opt: html,index.html,source_relative + out: stub/doc/html + - local: protoc-gen-doc + opt: markdown,index.md,source_relative + out: stub/doc/md # # NOTE: Gateway # # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2 # - local: protoc-gen-grpc-gateway