From f240c2300e6cbc49f6af04f70ecb35c21b5a7530 Mon Sep 17 00:00:00 2001 From: weyu <985695055@qq.com> Date: Sat, 26 Apr 2025 16:26:06 +0800 Subject: [PATCH] notary --- .github/workflows/_push.yml | 2 +- webs/notary/toto.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_push.yml b/.github/workflows/_push.yml index 1e45147..3a671cd 100644 --- a/.github/workflows/_push.yml +++ b/.github/workflows/_push.yml @@ -10,6 +10,6 @@ jobs: - uses: actions/checkout@v4 - name: Push To-To-To run: | - /bin/bash build.sh https://github.com/longhorn/website.git + /bin/bash build.sh https://github.com/notaryproject/notaryproject.dev.git src=`cat project_dir/ret-data|grep -v ^$|head -n 1` ./ossutil --access-key-id ${{ secrets.ALIYUN_CYG_OSS_AK }} --access-key-secret ${{ secrets.ALIYUN_CYG_OSS_SK }} --endpoint ${{ secrets.ALIYUN_CYG_OSS_ENDPOINT }} --region ${{ secrets.ALIYUN_CYG_OSS_REGION }} cp -f ${src} oss://cncfstack-website/ \ No newline at end of file diff --git a/webs/notary/toto.sh b/webs/notary/toto.sh index e7902ff..a0d580b 100644 --- a/webs/notary/toto.sh +++ b/webs/notary/toto.sh @@ -43,12 +43,16 @@ save_return(){ echo "project_dir/${tarfile}" > ret-data } +after_build(){ + filetoto "./output" + save_return +} + cd project_dir if cat .git/config |grep '/notaryproject/notaryproject.dev.git' ;then echo "匹配到 notary" before_build build - find_and_sed_v2 "./output" - save_return + after_build fi