Logging handler to send logs to your OpenSearch cluster with bulk SSL. Forked from https://github.com/logzio/logzio-python-handler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
794 B

  1. name: Pypi Release
  2. on:
  3. workflow_run:
  4. workflows: ["CI Tests"]
  5. branches: [master]
  6. types:
  7. - completed
  8. # Allows you to run this workflow manually from the Actions tab
  9. jobs:
  10. build-and-release:
  11. if: ${{ github.event.workflow_run.conclusion == 'success' }}
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - uses: actions/setup-python@v3.0.0
  16. with:
  17. python-version: '3.x'
  18. - name: "Install dependencies"
  19. run: |
  20. python3 -m pip install setuptools wheel twine
  21. - name: "Build and uploads to PyPI"
  22. run: |
  23. python3 setup.py sdist bdist_wheel
  24. python3 -m twine upload dist/*
  25. env:
  26. TWINE_USERNAME: __token__
  27. TWINE_PASSWORD: ${{ secrets.PYPI_REPO_TOKEN }}