Skip to content

Commit 3fab071

Browse files
authored
Merge pull request #423 from open-mmlab/plyfager/restart-publish
[Fix] Restart publish
2 parents e1d7c54 + b4deb31 commit 3fab071

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ concurrency:
66
group: ${{ github.workflow }}-${{ github.ref }}
77
cancel-in-progress: true
88

9-
# jobs:
10-
# build-n-publish:
11-
# runs-on: ubuntu-latest
12-
# if: startsWith(github.event.ref, 'refs/tags')
13-
# steps:
14-
# - uses: actions/checkout@v2
15-
# - name: Set up Python 3.7
16-
# uses: actions/setup-python@v2
17-
# with:
18-
# python-version: 3.7
19-
# - name: Install torch
20-
# run: pip install torch
21-
# - name: Install wheel
22-
# run: pip install wheel
23-
# - name: Build MMGeneration
24-
# run: python setup.py sdist bdist_wheel
25-
# - name: Publish distribution to PyPI
26-
# run: |
27-
# pip install twine
28-
# twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
9+
jobs:
10+
build-n-publish:
11+
runs-on: ubuntu-latest
12+
if: startsWith(github.event.ref, 'refs/tags')
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python 3.7
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.7
19+
- name: Install torch
20+
run: pip install torch
21+
- name: Install wheel
22+
run: pip install wheel
23+
- name: Build MMGeneration
24+
run: python setup.py sdist bdist_wheel
25+
- name: Publish distribution to PyPI
26+
run: |
27+
pip install twine
28+
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build
1313
&& rm -rf /var/lib/apt/lists/*
1414

1515
# Install MMCV
16-
RUN pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html
16+
RUN pip install openmim
17+
RUN mim install mmcv>=2.0.0rc1
1718

1819
# Install MMGeneration
1920
RUN conda clean --all
20-
RUN git clone https://github.com/open-mmlab/mmgeneration.git /mmgen
21+
RUN git clone -b 1.x https://github.com/open-mmlab/mmgeneration.git /mmgen
2122
WORKDIR /mmgen
2223
ENV FORCE_CUDA="1"
2324
RUN pip install -r requirements.txt

0 commit comments

Comments
 (0)