File tree Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 3535 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3636 - name : Build
3737 run : |
38- python setup.py bdist
38+ python setup.py sdist
39+ - name : Store distribution packages
40+ uses : actions/upload-artifact@v3
41+ with :
42+ name : dist
43+ path : dist/
3944
4045 test :
4146
@@ -74,20 +79,17 @@ jobs:
7479 needs : test
7580 if : startsWith(github.ref, 'refs/tags/v')
7681
82+ environment :
83+ name : pypi
84+ url : https://pypi.org/p/zxing
85+ permissions :
86+ # IMPORTANT: this permission is mandatory for trusted publishing
87+ id-token : write
7788 steps :
78- - uses : actions/checkout@v3
79- - name : Set up Python
80- uses : actions/setup-python@v3
89+ - name : Download distribution packages
90+ uses : actions/download-artifact@v3
8191 with :
82- python-version : ' 3.x'
83- - name : Install dependencies
84- run : |
85- python -m pip install --upgrade pip
86- pip install setuptools wheel twine
92+ name : dist
93+ path : dist/
8794 - name : Deploy to PyPI
88- env :
89- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
90- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
91- run : |
92- python setup.py sdist bdist_wheel
93- twine upload dist/*
95+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1- __version__ = "1.0.1 "
1+ __version__ = "1.0.2 "
You can’t perform that action at this time.
0 commit comments