Skip to content

Commit 51588da

Browse files
committed
Fix CI/CD pipeline
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent 28f46ed commit 51588da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pipeline.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main # Trigger on pull requests targeting the main branch
1010
workflow_dispatch: # Allow manual triggers
11+
release:
12+
types:
13+
- published # Trigger on new release creation
1114

1215
jobs:
1316
build-and-test:
@@ -51,7 +54,7 @@ jobs:
5154
name: Publish to crates.io
5255
needs: build-and-test
5356
runs-on: ubuntu-latest
54-
if: github.event_name == 'release' && github.event.action == 'published' # Ensure it only runs on release publish
57+
if: github.event.action == 'published'
5558

5659
steps:
5760
- name: Checkout repository

0 commit comments

Comments
 (0)