File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Expand file tree Collapse file tree 2 files changed +18
-15
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 sdist
3839 python setup.py bdist
40+ - name : Store distribution packages
41+ uses : actions/upload-artifact@v3
42+ with :
43+ name : dist
44+ path : dist/
3945
4046 test :
4147
@@ -74,20 +80,17 @@ jobs:
7480 needs : test
7581 if : startsWith(github.ref, 'refs/tags/v')
7682
83+ environment :
84+ name : pypi
85+ url : https://pypi.org/p/zxing
86+ permissions :
87+ # IMPORTANT: this permission is mandatory for trusted publishing
88+ id-token : write
7789 steps :
78- - uses : actions/checkout@v3
79- - name : Set up Python
80- uses : actions/setup-python@v3
90+ - name : Download distribution packages
91+ uses : actions/download-artifact@v3
8192 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
93+ name : dist
94+ path : dist/
8795 - 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/*
96+ 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