Skip to content

Commit b605b8c

Browse files
committed
make manual release
1 parent 83f857c commit b605b8c

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ name: Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
upload_to_pypi:
9+
description: 'Upload to PyPI'
10+
required: true
11+
default: 'false'
12+
type: choice
13+
options:
14+
- 'true'
15+
- 'false'
16+
617

718
jobs:
819
publish:
@@ -30,14 +41,15 @@ jobs:
3041
twine check dist/*
3142
3243
- name: Publish to PyPI
44+
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.upload_to_pypi == 'true')
3345
env:
3446
TWINE_USERNAME: __token__
3547
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3648
run: |
3749
twine upload dist/*
3850
3951
- name: Upload release artifacts
40-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
4153
with:
4254
name: release-dist
4355
path: dist/

0 commit comments

Comments
 (0)