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:
73
73
needs : [test]
74
74
runs-on : ubuntu-latest
75
75
if : contains(github.ref, 'tags')
76
+ environment : pypi-deploy
76
77
steps :
77
78
- uses : actions/checkout@v2
78
79
- name : Set up Python
79
80
uses : actions/setup-python@v2
80
81
with :
81
82
python-version : " 3.x"
82
- - name : Install dependencies
83
+ - name : Install build
83
84
run : |
84
85
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
90
89
run : |
91
90
git tag
92
91
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