test deploy
This commit is contained in:
parent
bec347d871
commit
80ee3703f4
@ -10,37 +10,27 @@ jobs:
|
|||||||
buf:
|
buf:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
|
||||||
echo ${{ gitea.api_url }}
|
|
||||||
|
|
||||||
- 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: ls -aRhl
|
||||||
- run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
# - run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||||
- run: npm install --save-dev
|
# - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||||
- run: buf --version
|
# - run: npm install --save-dev
|
||||||
- uses: actions/checkout@v4
|
# - run: buf --version
|
||||||
with:
|
# - uses: actions/checkout@v4
|
||||||
token: ${{ gitea.token }}
|
# with:
|
||||||
path: ./
|
# token: ${{ gitea.token }}
|
||||||
- run: npx buf generate
|
# path: ./
|
||||||
- run: |
|
# - run: npx buf generate
|
||||||
if [ -z ${{ gitea.ref }} ]; then
|
# - run: |
|
||||||
mkdir .res
|
# if [ -n ${{ gitea.ref_name }} ]; 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 gitea:${{ gitea.token }} \
|
# tar czf .res/${out}.tar.gz ./stub/${out}/ .
|
||||||
--upload-file .res/${out}.tar.gz \
|
# curl --user gitea:${{ gitea.token }} \
|
||||||
${{ gitea.api_url }}/packages/kahroba/generic/proto/${{ gitea.ref }}/${out}.tar.gz
|
# --upload-file .res/${out}.tar.gz \
|
||||||
done
|
# ${{ gitea.api_url }}/packages/kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
|
||||||
fi
|
# done
|
||||||
|
# fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user