Skip to content

Commit

Permalink
Supporting tagged releases and dispatch when Github actions refuse to…
Browse files Browse the repository at this point in the history
… run (#146)
  • Loading branch information
chayim authored Jan 10, 2023
1 parent 8890a2d commit b56cda3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Publish tag to Pypi

on:
release:
types: [published]
workflow_dispatch:

push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down Expand Up @@ -98,4 +101,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit b56cda3

Please sign in to comment.