Skip to content

Commit aa43e97

Browse files
CI maintenance
1 parent 6d0e5bf commit aa43e97

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 10 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:
@@ -82,12 +88,13 @@ jobs:
8288
publish:
8389
runs-on: ubuntu-latest
8490
needs: build
85-
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/')
91+
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_artifacts == 'Y')
8692
steps:
8793
- name: Download a distribution artifact
88-
uses: actions/download-artifact@v2
94+
uses: actions/download-artifact@v4
8995
with:
90-
name: dist
96+
pattern: dist-*
97+
merge-multiple: true
9198
path: dist
9299

93100
- name: Use Python 3.12

0 commit comments

Comments
 (0)