Skip to content

Commit

Permalink
ci: add workflow dispatch to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Oct 14, 2024
1 parent a65b871 commit 573ce94
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
release:
types:
- published
workflow_dispatch:
inputs:
tag:
required: true
type: string
description: Tag name to release

jobs:
publish:
Expand All @@ -16,6 +22,15 @@ jobs:
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
if: github.event_name == 'release'
with:
ref: ${{ github.event.release.tag_name }}

- name: 'Checkout repository'
uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
with:
ref: ${{ github.event.inputs.tag }}

- name: 'Install Python'
uses: actions/setup-python@v5
Expand Down

0 comments on commit 573ce94

Please sign in to comment.