volcano fix2
This commit is contained in:
parent
90b39da07b
commit
079ea5cde2
|
@ -10,6 +10,6 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Push To-To-To
|
- name: Push To-To-To
|
||||||
run: |
|
run: |
|
||||||
/bin/bash build.sh https://github.com/open-telemetry/opentelemetry.io.git
|
/bin/bash build.sh https://github.com/volcano-sh/website.git
|
||||||
src=`cat project_dir/ret-data|grep -v ^$|head -n 1`
|
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/
|
./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/
|
|
@ -50,6 +50,10 @@ install_hugo(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_hugo_v57_2(){
|
||||||
|
install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.57.2/hugo_extended_0.57.2_Linux-64bit.tar.gz"
|
||||||
|
}
|
||||||
|
|
||||||
install_hugo_v65_3(){
|
install_hugo_v65_3(){
|
||||||
install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.65.3/hugo_extended_0.65.3_Linux-64bit.tar.gz"
|
install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.65.3/hugo_extended_0.65.3_Linux-64bit.tar.gz"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,17 +2,18 @@ source libs/common.sh
|
||||||
|
|
||||||
before_build(){
|
before_build(){
|
||||||
echo "npm install"
|
echo "npm install"
|
||||||
npm install
|
|
||||||
|
|
||||||
echo "install hugo"
|
install_hugo_v57_2
|
||||||
install_hugo_v120
|
install_postcss
|
||||||
|
npm install
|
||||||
|
|
||||||
# 添加网站访问统计
|
# 添加网站访问统计
|
||||||
echo '<script defer src="https://umami.cncfstack.com/script.js" data-website-id="8ccc7a7d-06b8-477d-9d25-eb27c0ac9bbc"></script>' >> layouts/partials/favicons.html
|
echo '<script defer src="https://umami.cncfstack.com/script.js" data-website-id="8ccc7a7d-06b8-477d-9d25-eb27c0ac9bbc"></script>' >> layouts/partials/favicons.html
|
||||||
|
|
||||||
# 文件语法错误,无法编译
|
# 文件语法错误,无法编译
|
||||||
rm -f content/zh/blog/*
|
# rm -f content/zh/blog/*
|
||||||
rm -f content/en/blog/*
|
# rm -f content/en/blog/*
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
|
@ -21,6 +22,7 @@ build(){
|
||||||
./hugo \
|
./hugo \
|
||||||
--destination ./website-site \
|
--destination ./website-site \
|
||||||
--cleanDestinationDir \
|
--cleanDestinationDir \
|
||||||
|
--environment production \
|
||||||
--buildFuture \
|
--buildFuture \
|
||||||
--noBuildLock \
|
--noBuildLock \
|
||||||
--minify \
|
--minify \
|
||||||
|
|
Loading…
Reference in New Issue