[ci] fixed nightly build workflow (#1029)

pull/1021/head^2
Frank Lee 2022-05-26 11:42:50 +08:00 committed by GitHub
parent 9b0c037027
commit ee50497db2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -61,7 +61,7 @@ jobs:
git_ref: ${{ github.event.inputs.github_ref }}
- name: Build bdist wheel
run: |
pip install beautifulsoup4 requests
pip install beautifulsoup4 requests packaging
python ./build_colossalai_wheel.py
- name: 🚀 Deploy
uses: garygrossgarten/github-action-scp@release

View File

@ -70,12 +70,15 @@ jobs:
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
env:
BUILD_DIR: ${{ secrets.PRIVATE_PYPI_NIGHTLY_DIR }}
with:
host: ${{ secrets.PRIVATE_PYPI_HOST }}
username: ${{ secrets.PRIVATE_PYPI_USER }}
password: ${{ secrets.PRIVATE_PYPI_PASSWD }}
envs: BUILD_DIR
script: |
cd $build_dir
cd $BUILD_DIR
find . -type f -mtime +0 -exec rm -f {} +
env:
build_dir: ${{ secrets.PRIVATE_PYPI_NIGHTLY_DIR }}
script_stop: true