Skip to content

Commit ddc86b3

Browse files
committed
Fix publish action
1 parent 7f7ff43 commit ddc86b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on:
66

77
jobs:
88
deploy:
9-
# Don't run on linux to prevent spidev install from failing
10-
runs-on: macos-latest
9+
runs-on: ubuntu-latest
1110
steps:
1211
- uses: actions/checkout@v2
1312
- name: Set up Python
@@ -17,11 +16,11 @@ jobs:
1716
- name: Install dependencies
1817
run: |
1918
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
19+
pip install twine build
2120
- name: Build and publish
2221
env:
2322
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2423
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2524
run: |
26-
python setup.py bdist_wheel
25+
python -m build
2726
twine upload dist/*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
__pycache__
22
.tox
33
python_adc_eval.egg-info
4+
dist

0 commit comments

Comments
 (0)