Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/java-publish-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,13 @@ jobs:
node copilot-native/scripts/validate-native-artifact.mjs \
classifier linux-x64 "$LINUX_JAR" "$(basename "$LINUX_JAR")" ..
LINUX_SHA=$(sha256sum "$LINUX_JAR" | cut -d ' ' -f 1)
GROUP_ID=$(mvn -q -pl copilot-native help:evaluate -Dexpression=project.groupId -DforceStdout)
ARTIFACT_ID=$(mvn -q -pl copilot-native help:evaluate -Dexpression=project.artifactId -DforceStdout)
POM_VERSION=$(mvn -q -pl copilot-native help:evaluate -Dexpression=project.version -DforceStdout)
if [ -z "$GROUP_ID" ] || [ -z "$ARTIFACT_ID" ] || [ "$POM_VERSION" != "$VERSION" ]; then
echo "::error::Unexpected copilot-native Maven coordinates: $GROUP_ID:$ARTIFACT_ID:$POM_VERSION (expected version $VERSION)"
exit 1
fi
Comment thread
edburns marked this conversation as resolved.
{
echo "### Maven Central Release"
echo "- **Version:** $VERSION"
Expand All @@ -409,6 +416,16 @@ jobs:
echo "- **Next development version:** ${{ needs.prepare-release.outputs.development_version }}"
echo "- **Repository:** Maven Central"
echo ""
echo "#### Maven Coordinates"
echo ""
echo '```xml'
echo "<dependency>"
echo " <groupId>$GROUP_ID</groupId>"
echo " <artifactId>$ARTIFACT_ID</artifactId>"
echo " <version>$POM_VERSION</version>"
echo "</dependency>"
echo '```'
echo ""
echo "#### Published Native Classifiers"
echo ""
echo "| Classifier | Build runner | Artifact | SHA-256 | Status |"
Expand All @@ -424,7 +441,13 @@ jobs:

rollback-release:
name: Roll back failed Java release preparation
needs: [prepare-release, build-windows-classifier, build-darwin-classifier, deploy-maven]
needs:
[
prepare-release,
build-windows-classifier,
build-darwin-classifier,
deploy-maven,
]
if: ${{ failure() && needs.prepare-release.outputs.docs_commit != '' }}
runs-on: ubuntu-latest
permissions:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/java-publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,29 @@ jobs:
node copilot-native/scripts/validate-native-artifact.mjs \
classifier linux-x64 "$LINUX_JAR" "$(basename "$LINUX_JAR")" ..
LINUX_SHA=$(sha256sum "$LINUX_JAR" | cut -d ' ' -f 1)
GROUP_ID=$(mvn -q -pl copilot-native help:evaluate -Dexpression=project.groupId -DforceStdout)
ARTIFACT_ID=$(mvn -q -pl copilot-native help:evaluate -Dexpression=project.artifactId -DforceStdout)
POM_VERSION=$(mvn -q -pl copilot-native help:evaluate -Dexpression=project.version -DforceStdout)
if [ -z "$GROUP_ID" ] || [ -z "$ARTIFACT_ID" ] || [ "$POM_VERSION" != "$VERSION" ]; then
echo "::error::Unexpected copilot-native Maven coordinates: $GROUP_ID:$ARTIFACT_ID:$POM_VERSION (expected version $VERSION)"
exit 1
fi
Comment thread
edburns marked this conversation as resolved.
{
echo "### Snapshot Publish"
echo "- **Version:** $VERSION"
echo "- **Source commit:** \`${{ needs.resolve-source.outputs.source_sha }}\`"
echo "- **Repository:** Maven Central Snapshots"
echo ""
echo "#### Maven Coordinates"
echo ""
echo '```xml'
echo "<dependency>"
echo " <groupId>$GROUP_ID</groupId>"
echo " <artifactId>$ARTIFACT_ID</artifactId>"
echo " <version>$POM_VERSION</version>"
echo "</dependency>"
echo '```'
echo ""
echo "#### Published Native Classifiers"
echo ""
echo "| Classifier | Build runner | Artifact | SHA-256 | Status |"
Expand Down
Loading