Skip to content

Commit

Permalink
feat: add publishing logic for lla_plugin_utils in release workflow
Browse files Browse the repository at this point in the history
- Implemented checks to publish the lla_plugin_utils package if the specified version is not already published.
- Added echo statements to inform about the publishing status of lla_plugin_utils.
- Included a sleep command to allow for crates.io indexing after publishing.
  • Loading branch information
chaqchase committed Dec 27, 2024
1 parent 0ac82e3 commit 9e8e1da
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,17 @@ jobs:
echo "lla_plugin_interface v$VERSION already published, skipping..."
fi
# Check and publish lla_plugin_utils
PUBLISHED_VERSION=$(cargo search lla_plugin_utils --limit 1 | awk -F '"' '{print $2}')
if [ "$PUBLISHED_VERSION" != "$VERSION" ]; then
echo "Publishing lla_plugin_utils v$VERSION"
cargo publish -p lla_plugin_utils
# Wait for crates.io indexing
sleep 30
else
echo "lla_plugin_utils v$VERSION already published, skipping..."
fi
echo "Publishing lla v$VERSION"
cargo publish -p lla
Expand Down

0 comments on commit 9e8e1da

Please sign in to comment.