Skip to content

Upload_Python_Package #25

Upload_Python_Package

Upload_Python_Package #25

name: Upload_Python_Package
on:
workflow_run:
workflows: ["Build_wheel"]
types:
- completed
permissions:
contents: read
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: wheels.yml
name: sdk_whl
- name: Install Twine
run: pip install twine
- name: Upload package to PyPI
run: |
twine upload *.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}