Skip to content

Commit 79a7f54

Browse files
committed
Change publishing workflow to get it to work for automatic version picking
1 parent 7312865 commit 79a7f54

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up Python
14-
uses: actions/setup-python@v5
14+
uses: actions/setup-python@v1
1515
with:
1616
python-version: '3.x'
1717
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
18+
uses: BSFishy/pip-action@v1
19+
with:
20+
packages: |
21+
twine
22+
build
2123
- name: Build and publish
2224
env:
2325
TWINE_USERNAME: __token__
2426
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
2527
run: |
26-
python setup.py sdist
28+
pyproject-build
2729
twine upload dist/*

0 commit comments

Comments
 (0)