Skip to content

Commit b122e94

Browse files
committed
Allow publish to be manually dispatchable
1 parent af1d974 commit b122e94

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
fi
5656
5757
- name: Upload wheels
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
with:
6060
name: wheels
6161
path: dist
@@ -80,7 +80,7 @@ jobs:
8080
args: --release --out dist --find-interpreter
8181
sccache: 'true'
8282
- name: Upload wheels
83-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
8484
with:
8585
name: wheels
8686
path: dist
@@ -101,7 +101,7 @@ jobs:
101101
args: --release --out dist --find-interpreter
102102
sccache: 'true'
103103
- name: Upload wheels
104-
uses: actions/upload-artifact@v3
104+
uses: actions/upload-artifact@v4
105105
with:
106106
name: wheels
107107
path: dist
@@ -122,7 +122,7 @@ jobs:
122122
args: --release --out dist --find-interpreter
123123
sccache: 'true'
124124
- name: Upload wheels
125-
uses: actions/upload-artifact@v3
125+
uses: actions/upload-artifact@v4
126126
with:
127127
name: wheels
128128
path: dist
@@ -137,7 +137,7 @@ jobs:
137137
command: sdist
138138
args: --out dist
139139
- name: Upload sdist
140-
uses: actions/upload-artifact@v3
140+
uses: actions/upload-artifact@v4
141141
with:
142142
name: wheels
143143
path: dist
@@ -146,10 +146,10 @@ jobs:
146146
name: Release
147147
runs-on: ubuntu-latest
148148
environment: Publish
149-
if: "startsWith(github.ref, 'refs/tags/')"
149+
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'"
150150
needs: [linux, windows, macos_x86, macos_aarch64, sdist]
151151
steps:
152-
- uses: actions/download-artifact@v3
152+
- uses: actions/download-artifact@v4
153153
with:
154154
name: wheels
155155
- name: Publish to PyPI

0 commit comments

Comments
 (0)