Skip to content
代码片段 群组 项目
未验证 提交 6dceef51 编辑于 作者: Robert Bradshaw's avatar Robert Bradshaw 提交者: GitHub
浏览文件

Add yaml examples generation to the release scripts. (#34217)


* Add yaml examples generation to the release scripts.

* Update .github/workflows/build_release_candidate.yml

Co-authored-by: default avatarDanny McCormick <dannymccormick@google.com>

---------

Co-authored-by: default avatarDanny McCormick <dannymccormick@google.com>
上级 86f43f29
No related branches found
No related tags found
无相关合并请求
......@@ -391,6 +391,7 @@ jobs:
echo "............Copying generated yamldoc into beam-site.........."
mkdir -p yamldoc/${{ github.event.inputs.RELEASE }}
cp -r ${BEAM_ROOT_DIR}/sdks/python/build/yaml-ref.html yamldoc/${{ github.event.inputs.RELEASE }}/index.html
cp -r ${BEAM_ROOT_DIR}/sdks/python/build/yaml-examples.html yamldoc/${{ github.event.inputs.RELEASE }}/examples.html
# Update current symlink to point to the latest release
unlink yamldoc/current | true
ln -s ${{ github.event.inputs.RELEASE }} yamldoc/current
......
......@@ -101,10 +101,11 @@ tasks.register("generateYamlDocs") {
exec {
executable 'sh'
args '-c', "${envdir}/bin/pip install $extraPackages && " +
"${envdir}/bin/python -m apache_beam.yaml.generate_yaml_docs --html_file=${buildDir}/yaml-ref.html"
"${envdir}/bin/python -m apache_beam.yaml.generate_yaml_docs --html_file=${buildDir}/yaml-ref.html --examples_file=${buildDir}/yaml-examples"
}
}
outputs.file "${buildDir}/yaml-ref.html"
outputs.file "${buildDir}/yaml-examples.html"
}
tasks.register("yamlIntegrationTests") {
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册