--- name: Buf CI on: push: tags: - v* permissions: contents: read pull-requests: write 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 # - 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 }} # 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 # #