Skip to content

Commit

Permalink
only publish python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Aug 29, 2023
1 parent 62f078e commit a12b651
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ jobs:
with:
python-version: '3.x'

- name: Set up Python 2.x
uses: actions/setup-python@v2
with:
python-version: '2.x'
# - name: Set up Python 2.x
# uses: actions/setup-python@v2
# with:
# python-version: '2.x'

- name: Install dependencies 3.x
run: |
python -m pip install --upgrade pip
pip3 install setuptools wheel twine
- name: Install dependencies 2.x
run: |
python2 -m pip install --upgrade pip
pip2 install setuptools wheel twine
# - name: Install dependencies 2.x
# run: |
# python2 -m pip install --upgrade pip
# pip2 install setuptools wheel twine

- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
python3 setup.py sdist bdist_wheel
python2 setup.py sdist bdist_wheel
# python2 setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*

0 comments on commit a12b651

Please sign in to comment.