Skip to content

Commit

Permalink
Run automated publish when a new tag is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 3, 2023
1 parent d4d4814 commit 4ed2dc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: PyPI Automated publish

on:
workflow_dispatch:
pull_request:
branches:
- master
push:
tags:
- ".*"
- "*"
workflow_dispatch:

jobs:
deploy:
Expand Down Expand Up @@ -37,4 +38,4 @@ jobs:
if: github.event_name != 'pull_request'
run: |
poetry build
poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}

0 comments on commit 4ed2dc3

Please sign in to comment.