From c8fa0bfd60dd8c1f7473c7fad8c00f7dd08076f4 Mon Sep 17 00:00:00 2001 From: fanqiNO1 <1848839264@qq.com> Date: Tue, 21 Nov 2023 10:37:46 +0800 Subject: [PATCH] [Fix] Fix deploy.yml --- .github/workflows/deploy.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d884c9f6bc..f0b830bdbe 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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