Skip to content

Commit 4b7be99

Browse files
authored
Update build process (#166)
- Add workflow_dispatch to manually trigger workflows. - Add release type so that releases are used to push wheels to PyPI, rather than relying solely on tags with the proper format.
1 parent 3bbc711 commit 4b7be99

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build_and_deploy.yml

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

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
release:
8+
types: [published]
49

510
jobs:
611
build_wheels:
@@ -46,7 +51,7 @@ jobs:
4651
url: https://pypi.org/p/ripser
4752
permissions:
4853
id-token: write
49-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
54+
if: github.event_name == 'release' && github.event.action == 'published'
5055
steps:
5156
- uses: actions/download-artifact@v4
5257
with:

.github/workflows/python-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: [master]
99
pull_request:
1010
branches: [master]
11+
workflow_dispatch:
1112

1213
jobs:
1314
test:

0 commit comments

Comments
 (0)