Skip to content

Commit e5c261f

Browse files
committed
ci: fix pypi release
Revert "ci: fix pypi release" This reverts commit 8b3eb9c.
1 parent 4d487e1 commit e5c261f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'loiccoyle' }}
4949
needs:
5050
- tests
51+
outputs:
52+
release_created: ${{ steps.release.release_created }}
5153
runs-on: ubuntu-latest
5254
steps:
5355
- uses: googleapis/release-please-action@v4
@@ -58,8 +60,9 @@ jobs:
5860

5961
publish:
6062
name: Publish to pypi
61-
needs: tests
62-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
63+
needs:
64+
- release
65+
if: needs.release.outputs.release_created
6366
runs-on: ubuntu-latest
6467
steps:
6568
- uses: actions/checkout@v4
@@ -80,8 +83,9 @@ jobs:
8083

8184
trigger_image_build:
8285
name: Trigger tinyticker disk image build
83-
needs: publish
84-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
86+
needs:
87+
- publish
88+
if: needs.release.outputs.release_created
8589
runs-on: ubuntu-latest
8690
steps:
8791
- name: Workflow dispatch

0 commit comments

Comments
 (0)