Skip to content

Commit ab2cfce

Browse files
committed
Update ci publish
1 parent ad4f66f commit ab2cfce

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,17 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- name: Set up Python
15-
uses: actions/setup-python@v4
16-
with:
17-
python-version: '2.7'
13+
- uses: actions/checkout@v4
14+
- name: Install Python 2
15+
if: matrix.python-version == '2.7'
16+
run: |
17+
sudo apt update
18+
sudo apt install python2 python-pip
19+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
20+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
21+
printf '1\n' | sudo update-alternatives --config python
22+
cd /usr/bin
23+
sudo ln -s /usr/bin/pip2 ./pip
1824
- name: Get tag
1925
id: tag
2026
uses: dawidd6/action-get-tag@v1

0 commit comments

Comments
 (0)