Skip to content

Commit

Permalink
Don't upload bin in release because oneflow_worker has been removed (#…
Browse files Browse the repository at this point in the history
…5096)

* Don't upload bin because oneflow_worker is removed

* refine

* restore cuda bin dir cp

* refine

Co-authored-by: oneflow-ci-bot <[email protected]>
  • Loading branch information
jackalcooper and oneflow-ci-bot authored Jun 4, 2021
1 parent 77533b9 commit 22fbe76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 22fbe76

Please sign in to comment.