Skip to content

Commit 03cace0

Browse files
committed
fix publish action
1 parent 1656ef3 commit 03cace0

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,24 @@ jobs:
1010
uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 0
13-
- run: |
14-
python -m pip install --upgrade pip
15-
python -m pip install setuptools wheel
16-
python -m pip install .
13+
- name: Set up Python 3.10
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: "3.10"
17+
- name: Install pypa/build
18+
run: >-
19+
python -m
20+
pip install
21+
build
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/
30+
.
1731
- name: Publish package
1832
uses: pypa/gh-action-pypi-publish@release/v1
1933
with:

0 commit comments

Comments
 (0)