We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51dc142 commit 2b1ac6bCopy full SHA for 2b1ac6b
.github/workflows/python-publish.yml
@@ -16,7 +16,7 @@ permissions:
16
contents: read
17
18
jobs:
19
- deploy:
+ build-n-publish:
20
21
runs-on: ubuntu-latest
22
@@ -27,14 +27,13 @@ jobs:
27
with:
28
python-version: '3.x'
29
fetch-depth: 0
30
- - name: Install dependencies
+ - name: Build the project
31
run: |
32
- python -m pip install --upgrade pip
33
- pip install build
34
- - name: Build package
35
- run: python -m build
+ python -m pip install --upgrade build pip twine
+ python -m build
+ twine check --strict dist/*
36
- name: Publish package
37
- uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
+ uses: pypa/gh-action-pypi-publish@master
38
39
user: __token__
40
password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments