Skip to content

Commit bd77c63

Browse files
committed
Keep old CI/wheel build for Py2.7 and 3.5 wheels.
1 parent 8c2a4df commit bd77c63

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ jobs:
127127
- name: Copy wheels in dist
128128
run: cp -v wheelhouse*/*-m*linux*.whl dist/ # manylinux / musllinux
129129

130+
- name: Release
131+
uses: softprops/action-gh-release@v1
132+
if: startsWith(github.ref, 'refs/tags/')
133+
with:
134+
files:
135+
- dist/*cp27*.whl
136+
- dist/*cp35*.whl
137+
130138
- name: Archive Wheels
131139
uses: actions/upload-artifact@v3
132140
with:
@@ -164,17 +172,6 @@ jobs:
164172
with:
165173
python-version: ${{ matrix.python-version }}
166174

167-
- name: Set up Python2 (Linux)
168-
if: matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu')
169-
run: |
170-
sudo ln -fs python2 /usr/bin/python
171-
sudo apt-get update
172-
sudo apt-get install python-setuptools python2-dev
173-
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
174-
sudo python2 get-pip.py
175-
ls -l /usr/bin/pip* /usr/local/bin/pip*
176-
which pip
177-
178175
- name: Install dependencies
179176
run: |
180177
python -m pip install -U pip setuptools wheel
@@ -186,6 +183,12 @@ jobs:
186183
- name: Run slow tests
187184
run: make testslow
188185

186+
- name: Release
187+
uses: softprops/action-gh-release@v1
188+
if: startsWith(github.ref, 'refs/tags/') && matrix.python-version == '2.7'
189+
with:
190+
files: dist/*.whl
191+
189192
- name: Upload wheels
190193
uses: actions/upload-artifact@v3
191194
with:

0 commit comments

Comments
 (0)