mirror of
https://github.com/koush/scrypted.git
synced 2026-08-03 03:40:45 +01:00
python-sdk: publish to PyPI via manual workflow dispatch (#2108)
Replace the python-sdk-v* tag trigger with workflow_dispatch so the PyPI publish is kicked off manually. Trusted publishing is unaffected since it binds to the workflow filename and pypi environment, not the trigger type. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
5
.github/workflows/python-sdk.yml
vendored
5
.github/workflows/python-sdk.yml
vendored
@@ -1,8 +1,7 @@
|
||||
name: Python SDK
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ["python-sdk-v*"]
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- "packages/python-client/**"
|
||||
@@ -34,7 +33,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
name: Publish to PyPI
|
||||
if: startsWith(github.ref, 'refs/tags/python-sdk-v')
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
environment: pypi
|
||||
|
||||
Reference in New Issue
Block a user