Compare commits

..

13 Commits

Author SHA1 Message Date
nfel 1b9e7a05d3 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 14:28:59 +03:30
nfel 3c7092fb9b v2: ci 2024-11-23 14:21:04 +03:30
nfel fcfe74d80b v2: ci 2024-11-23 14:14:28 +03:30
nfel 13a75d52de v2: bad dot op in tar
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 13:46:10 +03:30
nfel 8aa875b1d6 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 13:35:34 +03:30
nfel a199324bcc v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 13:24:38 +03:30
nfel 3ebd28b9b8 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 13:17:00 +03:30
nfel f2ba3c5340 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 13:14:56 +03:30
nfel 86d857e242 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 13:09:52 +03:30
nfel d79187dfb4 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 13:03:56 +03:30
nfel 2325afaaf0 ci 2024-11-23 12:59:33 +03:30
nfel 9c92ab9d34 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 12:55:34 +03:30
nfel 5bcb6feeac v2: ci pkg
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 12:52:20 +03:30
3 changed files with 28 additions and 13 deletions
+15 -10
View File
@@ -14,24 +14,29 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '>=1.18.0'
go-version: '>=1.23.0'
- uses: bufbuild/buf-setup-action@v1.47.2
- 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: npm install --save-dev @bufbuild/protoc-gen-es
- run: buf --version
- uses: actions/checkout@v4
with:
token: ${{ gitea.token }}
path: ./
- run: npx buf generate
- 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: |
export PATH=$PATH:./node_modules/.bin
buf generate
- run: |
if [ -n ${{ gitea.ref_name }} ]; then
mkdir .res
for out in go ts docs; do
tar czf .res/${out}.tar.gz ./stub/${out}/ .
curl --user gitea:${{ gitea.token }} \
for out in go ts doc; do
tar czf .res/${out}.tar.gz ./stub/${out}/
echo ${{ gitea.api_url }}/packages/Kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
curl --user ${{ gitea.actor }}:${{ gitea.token }} \
--upload-file .res/${out}.tar.gz \
${{ gitea.api_url }}/packages/kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
${{ gitea.api_url }}/packages/Kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
done
fi
+6 -3
View File
@@ -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
+7
View File
@@ -0,0 +1,7 @@
{
"devDependencies": {
"@bufbuild/buf": "^1.47.2",
"@bufbuild/protobuf": "^2.2.2",
"@bufbuild/protoc-gen-es": "^2.2.2"
}
}