ci and README badge

This commit is contained in:
nfel 2024-11-20 16:48:18 +03:30
parent 04e0fcdc64
commit bec347d871
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
3 changed files with 28 additions and 26 deletions

View File

@ -18,31 +18,29 @@ jobs:
echo ${{ gitea.ref_name }} echo ${{ gitea.ref_name }}
echo ${{ gitea.repository }} echo ${{ gitea.repository }}
echo ${{ gitea.server_url }} echo ${{ gitea.server_url }}
echo ${{ gitea.token }} echo
echo ${{ gitea.api_url }} echo ${{ gitea.api_url }}
echo ${{ gitea }}
echo ${{ gitea.repo }}
# - uses: actions/setup-go@v5 - uses: actions/setup-go@v5
# with: with:
# go-version: '>=1.18.0' go-version: '>=1.18.0'
# - uses: bufbuild/buf-setup-action@v1.47.2 - 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/protobuf/cmd/protoc-gen-go@latest
# - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
# - run: npm install --save-dev - run: npm install --save-dev
# - run: buf --version - run: buf --version
# - uses: actions/checkout@v4 - uses: actions/checkout@v4
# with: with:
# token: ${{ secrets.PROD_REG_TOKEN }} token: ${{ gitea.token }}
# path: ./ path: ./
# - run: npx buf generate - run: npx buf generate
# - run: | - run: |
# mkdir .res if [ -z ${{ gitea.ref }} ]; then
# for out in go ts docs; do mkdir .res
# tar czf .res/${out}.tar.gz ./stub/${out}/ . for out in go ts docs; do
# curl --user nfel:${{ secrets.PROD_REG_TOKEN }} \ tar czf .res/${out}.tar.gz ./stub/${out}/ .
# --upload-file .res/${out}.tar.gz \ curl --user gitea:${{ gitea.token }} \
# https://git.kahrobatoken.com/api/packages/kahroba/generic/proto/${{ gitea.event }}/${out}.tar.gz --upload-file .res/${out}.tar.gz \
# done ${{ gitea.api_url }}/packages/kahroba/generic/proto/${{ gitea.ref }}/${out}.tar.gz
# done
# fi

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ gen/go
stub stub
node_modules node_modules
yarn.lock yarn.lock
package-lock.json

View File

@ -0,0 +1,3 @@
# Protobuf with fangs
![Build Status](https://git.kahrobatoken.com/Kahroba/proto/actions/workflows/buf-ci.yaml/badge.svg?branch=v2)