diff --git a/.github/workflows/_push.yml b/.github/workflows/_push.yml index bb44df6..0d5d8ac 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/opencost/opencost-website.git + /bin/bash build.sh https://github.com/open-feature/openfeature.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/openfeature/toto.sh b/webs/openfeature/toto.sh index 907ec79..642352f 100644 --- a/webs/openfeature/toto.sh +++ b/webs/openfeature/toto.sh @@ -10,6 +10,8 @@ before_build(){ sed -ri "s|plugins:\s*\[|plugins: [()=>({name:'umami-analytics',injectHtmlTags:()=>({headTags:[{tagName:'script',attributes:{defer:true,src:'https://umami.cncfstack.com/script.js','data-website-id':'2ef83157-07a7-4bff-a911-e05f83e8663b'}}]})}),|g" docusaurus.config.ts + sed -i "s|url:\s*'https://openfeature.dev',|url: 'https://openfeature.website.cncfstack.com',|g" docusaurus.config.js + log_info "./docusaurus.config.ts 配置文件内容" cat ./docusaurus.config.ts @@ -47,11 +49,17 @@ save_return(){ echo "project_dir/${tarfile}" > ret-data } + +after_build(){ + filetoto "./build" + save_return +} + + cd project_dir if cat .git/config |grep '/open-feature/openfeature.dev.git' ;then log_info "匹配到 open-feature" before_build - find_and_sed_v2 "./build" build - save_return + after_build fi