Skip to content

Commit 3afca01

Browse files
author
manchenkoff
committed
GitHub upload workflow updated
1 parent 8842893 commit 3afca01

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/upload.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ jobs:
2121
python -m pip install --upgrade pip
2222
pip install pipenv
2323
pipenv install --dev
24-
pipenv install SecretStorage
2524
26-
- name: Build and publish
27-
env:
28-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
29-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25+
- name: Build package
3026
run: |
3127
pipenv run python setup.py sdist bdist_wheel
32-
pipenv run twine upload dist/*
28+
29+
- name: Publish package
30+
if: startsWith(github.ref, 'refs/tags')
31+
uses: pypa/gh-action-pypi-publish@master
32+
with:
33+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)