Skip to content

Commit

Permalink
Add manual upload button to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
epruesse committed Jul 19, 2024
1 parent dfe861e commit ef6dec2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Upload PyPI Release

on:
workflow_dispatch:
inputs:
do_upload:
description: "Do Upload?"
required: true
type: boolean
default: false
release:
types: [ published ]

Expand Down Expand Up @@ -43,7 +49,7 @@ jobs:
run:
./setup.py bdist_wheel
- name: Publish
if: startsWith(github.event.ref, 'refs/tags') && github.event_name == 'push'
if: (startsWith(github.event.ref, 'refs/tags') && github.event_name == 'push') || ${{ inputs.do_upload }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit ef6dec2

Please sign in to comment.