File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,18 @@ jobs:
3737 name : Publish package to PyPI
3838 if : startsWith(github.ref, 'refs/tags')
3939 runs-on : ubuntu-latest
40+ environment :
41+ name : pypi
42+ url : https://pypy.org/p/kafka-schema-registry
43+ permissions :
44+ id-token : write
4045 needs : test
4146 steps :
4247 - uses : actions/checkout@v2
4348
4449 - uses : actions/setup-python@v2
4550
46- - name : Publish package to PyPI
47- run : make release
48- env :
49- TWINE_USERNAME : __token__
50- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
51+ - name : Build files to upload to PyPI
52+ run : make build_dist
53+ - name : Publish package distributions to PyPI
54+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -42,11 +42,10 @@ test: $(VENV)
4242lint : $(VENV )
4343 $(BIN ) /flake8
4444
45- .PHONY : release
46- release : $(VENV )
45+ .PHONY : build_dist
46+ build_dist : $(VENV )
4747 rm -rf dist
4848 $(BIN ) /python setup.py sdist bdist_wheel
49- $(BIN ) /twine upload dist/*
5049
5150.PHONY : clean
5251clean :
Original file line number Diff line number Diff line change @@ -2,6 +2,5 @@ pytest==8.3.4
22pytest-cov == 6.0.0
33flake8 == 7.1.1
44responses == 0.25.3
5- twine == 6.0.1
65wheel == 0.45.1
76
You can’t perform that action at this time.
0 commit comments