Skip to content

Commit 7109568

Browse files
authored
Update prerelease-deploy.yml
This should work
1 parent fec8019 commit 7109568

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/prerelease-deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
- name: Get tag version
2121
id: get_version
2222
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
23-
- name: Set up Python 3.9
23+
- name: Set up Python 3.8
2424
uses: actions/setup-python@v2
2525
with:
26-
python-version: 3.9
26+
python-version: 3.8
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install flake8 pytest
30+
pip install flake8 pytest setuptools wheel twine
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3232
- name: Lint with flake8
3333
run: |
@@ -42,8 +42,7 @@ jobs:
4242
run: |
4343
echo "Python package version: ${{ steps.get_version.outputs.VERSION }}"
4444
sed -i -E -r "s/version = \"(.*)\"/version = \"${{ steps.get_version.outputs.VERSION }}\"/g" setup.py
45-
python -m pip install -U pip wheel setuptools
46-
python -m build --sdist --wheel --outdir dist/
45+
python setup.py sdist bdist_wheel
4746
- name: Deploy Distribution to Test PyPI
4847
uses: pypa/gh-action-pypi-publish@master
4948
with:

0 commit comments

Comments
 (0)