From 1db694900643784b62c4477a0c84bea77383d77c Mon Sep 17 00:00:00 2001 From: weyu <985695055@qq.com> Date: Sat, 26 Apr 2025 08:39:24 +0800 Subject: [PATCH] fix istio --- .github/workflows/_push.yml | 2 +- webs/istio/toto.sh | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/_push.yml b/.github/workflows/_push.yml index ef10e19..1b78cca 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/goharbor/website.git + /bin/bash build.sh https://github.com/istio/istio.io.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/istio/toto.sh b/webs/istio/toto.sh index 3da8e77..37d5a02 100644 --- a/webs/istio/toto.sh +++ b/webs/istio/toto.sh @@ -19,7 +19,6 @@ build(){ --cleanDestinationDir \ --minify \ --gc \ - --enableGitInfo \ --baseURL https://istio.website.cncfstack.com } @@ -42,13 +41,15 @@ save_return(){ echo "project_dir/${tarfile}" > ret-data } - +after_build(){ + filetoto "./output" + save_return +} cd project_dir if cat .git/config |grep '/istio/istio.io.git' ;then echo "匹配到 istio" before_build build - find_and_sed_v2 "./output" - save_return + after_build fi