Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-11-23 14:53:05 +03:30
parent 9f99f4203d
commit 8d2bdaf352
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F

View File

@ -3,9 +3,12 @@ on:
push: push:
tags: tags:
- v* - v*
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
@ -30,8 +33,13 @@ jobs:
for out in go ts doc; do for out in go ts doc; do
echo releasing ${out} ... echo releasing ${out} ...
tar czf .res/${out}.tar.gz ./stub/${out}/ tar czf .res/${out}.tar.gz ./stub/${out}/
curl -Ss --user nfel:${{ secrets.PROD_REG_TOKEN }}\ curl -Ss --user ${{ gitea.actor}}:${{ gitea.token}}\
--upload-file .res/${out}.tar.gz \ --upload-file .res/${out}.tar.gz \
${{ gitea.server_url }}/api/packages/Kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz ${{ gitea.server_url }}/api/packages/Kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
done 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 fi