v2: ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
96a0171bfd
commit
9f99f4203d
@ -28,10 +28,9 @@ jobs:
|
|||||||
if [ -n ${{ gitea.ref_name }} ]; then
|
if [ -n ${{ gitea.ref_name }} ]; then
|
||||||
mkdir .res
|
mkdir .res
|
||||||
for out in go ts doc; do
|
for out in go ts doc; do
|
||||||
|
echo releasing ${out} ...
|
||||||
tar czf .res/${out}.tar.gz ./stub/${out}/
|
tar czf .res/${out}.tar.gz ./stub/${out}/
|
||||||
echo ${{ gitea.server_url }}/api/packages/Kahroba/generic/proto/${{ gitea.ref_name }}/${out}.tar.gz
|
curl -Ss --user nfel:${{ secrets.PROD_REG_TOKEN }}\
|
||||||
|
|
||||||
curl --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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user