Update python-publish.yml new auth #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PyPI | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: pip install setuptools wheel | |
- name: Build and deploy package | |
run: | | |
python3 setup.py sdist bdist_wheel | |
pip install twine | |
twine upload -u '__token__' -p 'pypi-AgEIcHlwaS5vcmcCJDY4NzA4MTAwLTg4ZWEtNDdkMy1hNzQwLWU4OWYwMjY2OGM0MQACDlsxLFsibndtdXJsIl1dAAIsWzIsWyI0OTAxZGI0Yy1mMDUyLTRiMjgtYmM5Yi1kYTI0ZDM0NDE5ZjkiXV0AAAYgs6DAaFDv4P887S3-71CG0dfAgW6miDXToKFgWhgpm5Q' dist/* | |