[Fix] Fix deploy.yml (#1431)

This commit is contained in:
fanqiNO1 2023-11-21 11:21:36 +08:00 committed by GitHub
parent be48e8b2f4
commit bdd653a8c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,6 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install torch
run: pip install torch
- name: Install wheel
run: pip install wheel
- name: Build MMEngine
@ -36,13 +34,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install torch
run: pip install torch
- name: Install wheel
run: pip install wheel
- name: Build MMEngine-lite
run: sed -i "s/os.getenv('MMENGINE_LITE', '0')/os.getenv('MMENGINE_LITE', '1')/g" setup.py
python setup.py sdist bdist_wheel
run: |
sed -i "s/os.getenv('MMENGINE_LITE', '0')/os.getenv('MMENGINE_LITE', '1')/g" setup.py
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
run: |
pip install twine