We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad4f66f commit ab2cfceCopy full SHA for ab2cfce
.github/workflows/publish.yml
@@ -10,11 +10,17 @@ jobs:
10
build:
11
runs-on: ubuntu-latest
12
steps:
13
- - uses: actions/checkout@v3
14
- - name: Set up Python
15
- uses: actions/setup-python@v4
16
- with:
17
- python-version: '2.7'
+ - uses: actions/checkout@v4
+ - name: Install Python 2
+ if: matrix.python-version == '2.7'
+ run: |
+ 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
24
- name: Get tag
25
id: tag
26
uses: dawidd6/action-get-tag@v1
0 commit comments