Skip to content

Commit

Permalink
Update build process
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
catanzaromj committed Jun 25, 2024
1 parent 3bbc711 commit 12d36bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Build

on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]

jobs:
build_wheels:
Expand Down Expand Up @@ -46,7 +51,7 @@ jobs:
url: https://pypi.org/p/ripser
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
test:
Expand Down

0 comments on commit 12d36bd

Please sign in to comment.