提交 87d4ab17 编写于 作者: S Shenghang Tsai 提交者: jackalcooper

Don't upload bin in release because oneflow_worker has been removed (#5096)

* Don't upload bin because oneflow_worker is removed

* refine

* restore cuda bin dir cp

* refine
Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
上级 bf7d7975
......@@ -184,14 +184,6 @@ jobs:
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install oss2 beautifulsoup4 --user
python3 tools/create_pip_index.py --dir_key ${oss_dir} -b oneflow-staging --index_key=${oss_branch_dir}/index.html --index_key=${oss_dir}/index.html
- name: Upload bin
if: env.is_built != '1' && contains(env.compute_platforms, matrix.compute_platform)
uses: ./.github/actions/upload_oss
with:
src_path: ${bin_dir}
oss_dst_path: oss://oneflow-staging/${oss_dir}/bin/${{ matrix.compute_platform }}
oss_access_key_id: ${{ secrets.OSS_ACCESS_KEY_ID }}
oss_access_key_secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
- name: Update API docs
if: github.ref == 'refs/heads/master' && matrix.compute_platform == 'cu102' && contains(env.compute_platforms, matrix.compute_platform)
env:
......
......@@ -245,14 +245,6 @@ jobs:
oss_dst_path: oss://oneflow-staging/${{ github.repository }}/pr/${{ github.event.pull_request.number }}/${{ github.sha }}/${{ matrix.test_suite }}/whl
oss_access_key_id: ${{ secrets.OSS_ACCESS_KEY_ID }}
oss_access_key_secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
- name: Upload bin to cloud, enable by adding label 'upload-wheel'
if: contains(github.event.pull_request.labels.*.name, 'upload-wheel') && matrix.test_suite != 'mac'
uses: ./.github/actions/upload_oss
with:
src_path: ${bin_dir}
oss_dst_path: oss://oneflow-staging/${{ github.repository }}/pr/${{ github.event.pull_request.number }}/${{ github.sha }}/${{ matrix.test_suite }}/bin
oss_access_key_id: ${{ secrets.OSS_ACCESS_KEY_ID }}
oss_access_key_secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
- name: Remove container
if: always() && matrix.test_suite != 'mac'
run: |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册