Skip to content

Commit 162559a

Browse files
ci: fix release
Signed-off-by: jaapschoutenalliander <[email protected]>
1 parent 48921a9 commit 162559a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- run: echo "ci started"
3030

3131
build-python:
32-
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.create_release }}
32+
if: ${{ github.ref == 'refs/heads/main' && inputs.create_release }}
3333
runs-on: ubuntu-latest
3434
outputs:
3535
version: ${{ steps.version.outputs.version }}
@@ -68,7 +68,7 @@ jobs:
6868
path: dist/
6969

7070
tests:
71-
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.create_release }}
71+
if: ${{ github.ref == 'refs/heads/main' && inputs.create_release }}
7272
needs: build-python
7373
strategy:
7474
matrix:
@@ -103,7 +103,7 @@ jobs:
103103
run: poe all --check
104104

105105
github-release:
106-
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.create_release }}
106+
if: ${{ github.ref == 'refs/heads/main' && inputs.create_release }}
107107
needs:
108108
- build-python
109109
- tests
@@ -142,7 +142,7 @@ jobs:
142142

143143
publish:
144144
name: Publish to PyPI
145-
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.create_release }}
145+
if: ${{ github.ref == 'refs/heads/main' && inputs.create_release }}
146146
needs: github-release
147147
runs-on: ubuntu-latest
148148
permissions:

0 commit comments

Comments
 (0)