Skip to content

Commit

Permalink
Adding action to push to pypi when a new tag is created
Browse files Browse the repository at this point in the history
  • Loading branch information
4383 committed Apr 20, 2023
1 parent ddd7956 commit 235f93c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Main workflow

on: push

jobs:
pypi-publish:
name: Upload release to Pypi
runs-on: ubuntu-latest
steps:
- name: Publish package distributions to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 235f93c

Please sign in to comment.