add pypi publish; thx for the idea and
@@ -39,6 +39,13 @@ jobs:
BEARER_TOKEN: ${{ secrets.bearer_token }}
run: python setup.py test
+ - name: Publish to PyPI
+ if: github.event_name == "push" && startsWith(github.ref, 'refs/tags')
+ uses: pypa/gh-action-pypi-publish@release/v1
+ with:
+ user: __token__
+ password: ${{ secrets.PYPI_API_TOKEN }}
+
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
@@ -47,3 +54,5 @@ jobs:
SLACK_ICON_EMOJI: ":test-tube:"
SLACK_COLOR: "${{ job.status == 'success' && 'good' || 'danger' }}"
SLACK_MESSAGE: "Tests Results: ${{ job.status }}"
+
+
