Skip to content

Commit 2b1ac6b

Browse files
authored
Update python-publish.yml
1 parent 51dc142 commit 2b1ac6b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/python-publish.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
deploy:
19+
build-n-publish:
2020

2121
runs-on: ubuntu-latest
2222

@@ -27,14 +27,13 @@ jobs:
2727
with:
2828
python-version: '3.x'
2929
fetch-depth: 0
30-
- name: Install dependencies
30+
- name: Build the project
3131
run: |
32-
python -m pip install --upgrade pip
33-
pip install build
34-
- name: Build package
35-
run: python -m build
32+
python -m pip install --upgrade build pip twine
33+
python -m build
34+
twine check --strict dist/*
3635
- name: Publish package
37-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
36+
uses: pypa/gh-action-pypi-publish@master
3837
with:
3938
user: __token__
4039
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)