Skip to content

Commit

Permalink
Update ci publish
Browse files Browse the repository at this point in the history
  • Loading branch information
polsala committed Mar 6, 2024
1 parent ad4f66f commit ab2cfce
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '2.7'
- uses: actions/checkout@v4
- name: Install Python 2
if: matrix.python-version == '2.7'
run: |
sudo apt update
sudo apt install python2 python-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
printf '1\n' | sudo update-alternatives --config python
cd /usr/bin
sudo ln -s /usr/bin/pip2 ./pip
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
Expand Down

0 comments on commit ab2cfce

Please sign in to comment.