Skip to content

Commit 33f8275

Browse files
committed
Fix publish jobs' steps
1 parent d7c21fe commit 33f8275

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/test_and_publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
steps:
6565
- name: Check out code
6666
uses: actions/checkout@v3
67+
with:
68+
submodules: recursive
6769

6870
- name: Set up Python
6971
uses: actions/setup-python@v4.5.0
@@ -73,14 +75,14 @@ jobs:
7375
- name: Install dependencies
7476
run: |
7577
python -m pip install --upgrade pip
76-
pip install setuptools wheel twine
78+
pip install --upgrade build twine
7779
7880
- name: Build and publish
7981
env:
8082
TWINE_USERNAME: '__token__'
8183
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
8284
run: |
83-
python setup.py sdist bdist_wheel
85+
python -m build
8486
twine upload --repository testpypi dist/*
8587
8688
publish-to-pypi:
@@ -95,6 +97,8 @@ jobs:
9597
steps:
9698
- name: Check out code
9799
uses: actions/checkout@v3
100+
with:
101+
submodules: recursive
98102

99103
- name: Set up Python
100104
uses: actions/setup-python@v4.5.0
@@ -104,12 +108,12 @@ jobs:
104108
- name: Install dependencies
105109
run: |
106110
python -m pip install --upgrade pip
107-
pip install setuptools wheel twine
111+
pip install --upgrade build twine
108112
109113
- name: Build and publish
110114
env:
111115
TWINE_USERNAME: '__token__'
112116
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
113117
run: |
114-
python setup.py sdist bdist_wheel
118+
python -m build
115119
twine upload dist/*

0 commit comments

Comments
 (0)