Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

ci: add workflow_dispatch to publish.yml for manual crates.io triggers

Samir Hossain5932c3169ea2
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 4ed7c93..192b606 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -3,15 +3,26 @@ name: Publish to Crates.io
on:
release:
types: [published]
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: 'Tag/version to publish (e.g. v0.1.8)'
+ required: false
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
+ - name: Determine Ref
+ id: ref
+ run: |
+ REF="${{ github.event.inputs.tag || github.event.release.tag_name || 'v0.1.8' }}"
+ echo "target_ref=$REF" >> $GITHUB_OUTPUT
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
- ref: ${{ github.event.release.tag_name }}
+ ref: ${{ steps.ref.outputs.target_ref }}
- name: Install Rust
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable