Compare commits

...

3 Commits

Author SHA1 Message Date
nfel db0bda6bae ci on tags 2024-11-20 16:53:02 +03:30
nfel 80ee3703f4 test deploy 2024-11-20 16:52:36 +03:30
nfel bec347d871 ci and README badge 2024-11-20 16:48:18 +03:30
3 changed files with 21 additions and 27 deletions
+17 -27
View File
@@ -2,6 +2,8 @@
name: Buf CI
on:
push:
tags:
- v*
permissions:
contents: read
@@ -10,39 +12,27 @@ jobs:
buf:
runs-on: ubuntu-latest
steps:
- run: |
echo ${{ gitea.action }}
echo ${{ gitea.event_name }}
echo ${{ gitea.ref }}
echo ${{ gitea.base_ref }}
echo ${{ gitea.ref_name }}
echo ${{ gitea.repository }}
echo ${{ gitea.server_url }}
echo ${{ gitea.token }}
echo ${{ gitea.api_url }}
echo ${{ gitea }}
echo ${{ gitea.repo }}
# - uses: actions/setup-go@v5
# with:
# go-version: '>=1.18.0'
# - uses: bufbuild/buf-setup-action@v1.47.2
- uses: actions/setup-go@v5
with:
go-version: '>=1.18.0'
- uses: bufbuild/buf-setup-action@v1.47.2
- run: ls -aRhl
# - 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
# - run: buf --version
# - uses: actions/checkout@v4
# with:
# token: ${{ secrets.PROD_REG_TOKEN }}
# token: ${{ gitea.token }}
# path: ./
# - run: npx buf generate
# - run: |
# mkdir .res
# for out in go ts docs; do
# tar czf .res/${out}.tar.gz ./stub/${out}/ .
# curl --user nfel:${{ secrets.PROD_REG_TOKEN }} \
# --upload-file .res/${out}.tar.gz \
# https://git.kahrobatoken.com/api/packages/kahroba/generic/proto/${{ gitea.event }}/${out}.tar.gz
# done
#
#
# 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 }} \
# --upload-file .res/${out}.tar.gz \
# ${{ gitea.api_url }}/packages/kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
# done
# fi
+1
View File
@@ -3,3 +3,4 @@ gen/go
stub
node_modules
yarn.lock
package-lock.json
+3
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)