File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,10 +209,21 @@ jobs:
209209
210210 - name : Collect release assets
211211 run : |
212+ set -e
213+ VERSION="${{ steps.validate_tag.outputs.version }}"
212214 mkdir -p artifacts
213- cp xapi-client/target/xapi-client-${{version}}.jar artifacts/
214- cp xapi-model/target/xapi-model-${{version}}.jar artifacts/
215- cp xapi-model-spring-boot-starter/target/xapi-model-spring-boot-starter-${{version}}.jar artifacts/
215+ # Define artifact paths
216+ CLIENT_JAR="target/checkout/xapi-client/target/xapi-client-${VERSION}.jar"
217+ MODEL_JAR="target/checkout/xapi-model/target/xapi-model-${VERSION}.jar"
218+ STARTER_JAR="target/checkout/xapi-model-spring-boot-starter/target/xapi-model-spring-boot-starter-${VERSION}.jar"
219+ # Check existence and copy
220+ for JAR in "$CLIENT_JAR" "$MODEL_JAR" "$STARTER_JAR"; do
221+ if [ ! -f "$JAR" ]; then
222+ echo "::error::Artifact not found: $JAR"
223+ exit 1
224+ fi
225+ cp "$JAR" artifacts/
226+ done
216227
217228 - name : Upload release assets
218229 env :
You can’t perform that action at this time.
0 commit comments