Skip to content

Commit 1797665

Browse files
committed
Add Missing Publish Sync
1 parent 4ccb5ba commit 1797665

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cppython/project.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,14 @@ def publish(self) -> None:
9898
Raises:
9999
Exception: Provider-specific exception
100100
"""
101+
if not self._enabled:
102+
self.logger.info('Skipping publish because the project is not enabled')
103+
return
104+
105+
self.logger.info('Publishing project')
106+
107+
# Ensure sync is performed before publishing to generate necessary files
108+
self._data.sync()
109+
101110
# Let provider handle its own exceptions for better error context
102111
self._data.plugins.provider.publish()

0 commit comments

Comments
 (0)