Skip to content

Commit 62c910b

Browse files
Fix workflow issue
1 parent 560ff8e commit 62c910b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
publish_artifacts:
7+
description: 'Publish artifacts (Y|N)'
8+
required: true
9+
default: 'N'
410
release:
511
types: [published]
612
push:
@@ -77,7 +83,7 @@ jobs:
7783
if: matrix.python-version == 3.12
7884

7985
- name: Upload distribution package
80-
uses: actions/upload-artifact@master
86+
uses: actions/upload-artifact@v4
8187
with:
8288
name: dist
8389
path: dist
@@ -86,10 +92,10 @@ jobs:
8692
publish:
8793
runs-on: ubuntu-latest
8894
needs: build
89-
if: github.event_name == 'release'
95+
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_artifacts == 'Y')
9096
steps:
9197
- name: Download a distribution artifact
92-
uses: actions/download-artifact@v2
98+
uses: actions/download-artifact@v4
9399
with:
94100
name: dist
95101
path: dist

0 commit comments

Comments
 (0)