File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -73,21 +73,22 @@ jobs:
7373 needs : [test]
7474 runs-on : ubuntu-latest
7575 if : contains(github.ref, 'tags')
76+ environment : pypi-deploy
7677 steps :
7778 - uses : actions/checkout@v2
7879 - name : Set up Python
7980 uses : actions/setup-python@v2
8081 with :
8182 python-version : " 3.x"
82- - name : Install dependencies
83+ - name : Install build
8384 run : |
8485 python -m pip install --upgrade pip
85- pip install -U setuptools setuptools_scm wheel twine build
86- - name : Build and publish
87- env :
88- TWINE_USERNAME : __token__
89- TWINE_PASSWORD : ${{ secrets.TWINE_API_KEY }}
86+ python -m pip install --upgrade build
87+
88+ - name : Build package
9089 run : |
9190 git tag
9291 python -m build .
93- twine upload dist/*
92+
93+ - name : Publish package
94+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments