Compare commits

..

17 Commits

Author SHA1 Message Date
nfel 8d2bdaf352 v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 14:53:05 +03:30
nfel 9f99f4203d v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 14:41:22 +03:30
nfel 96a0171bfd v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-23 14:31:34 +03:30
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
nfel 8338a661f7 no pkg json 2024-11-20 16:55:48 +03:30
2 changed files with 35 additions and 25 deletions
+29 -22
View File
@@ -1,4 +1,3 @@
---
name: Buf CI name: Buf CI
on: on:
push: push:
@@ -8,31 +7,39 @@ on:
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write
packages: write
jobs: jobs:
buf: buf:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '>=1.18.0' go-version: ">=1.23.0"
- uses: bufbuild/buf-setup-action@v1.47.2 - uses: bufbuild/buf-setup-action@v1.47.2
- run: ls -aRhl - uses: actions/checkout@v4
# - run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest with:
# - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest token: ${{ gitea.token }}
# - run: npm install --save-dev path: ./
# - run: buf --version - run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
# - uses: actions/checkout@v4 - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
# with: - run: go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest
# token: ${{ gitea.token }} - run: npm install --save @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf
# path: ./ - run: buf --version
# - run: npx buf generate - run: "export PATH=$PATH:./node_modules/.bin\nbuf generate \n"
# - run: | - run: |
# if [ -n ${{ gitea.ref_name }} ]; then if [ -n ${{ gitea.ref_name }} ]; then
# mkdir .res mkdir .res
# for out in go ts docs; do for out in go ts doc; do
# tar czf .res/${out}.tar.gz ./stub/${out}/ . echo releasing ${out} ...
# curl --user gitea:${{ gitea.token }} \ tar czf .res/${out}.tar.gz ./stub/${out}/
# --upload-file .res/${out}.tar.gz \ curl -Ss --user ${{ gitea.actor}}:${{ gitea.token}}\
# ${{ gitea.api_url }}/packages/kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz --upload-file .res/${out}.tar.gz \
# done ${{ gitea.server_url }}/api/packages/Kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
# fi done
echo releasing proto ...
tar czf ./.res/src.tar.gz $(find -type f -name "*.proto")
curl -Ss --user ${{ gitea.actor}}:${{ gitea.token}}\
--upload-file ./.res/src.tar.gz \
${{ gitea.server_url }}/api/packages/Kahroba/generic/proto/${{ gitea.ref_name }}/src.tar.gz
fi
+6 -3
View File
@@ -20,9 +20,12 @@ plugins:
# - remote: buf.build/protocolbuffers/go:v1.30.0 # - remote: buf.build/protocolbuffers/go:v1.30.0
out: stub/go out: stub/go
# NOTE: doc # NOTE: doc
# - local: protoc-gen-doc - local: protoc-gen-doc
# opt: html,index.html,source_relative opt: html,index.html,source_relative
# out: stub/doc out: stub/doc/html
- local: protoc-gen-doc
opt: markdown,index.md,source_relative
out: stub/doc/md
# # NOTE: Gateway # # NOTE: Gateway
# # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2 # # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2
# - local: protoc-gen-grpc-gateway # - local: protoc-gen-grpc-gateway