This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 5b80ba8bf fix(ci): upload assets properly
5b80ba8bf is described below
commit 5b80ba8bfde7e9ddc0cfbcd2629372d4580cfd22
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Tue Nov 25 15:27:30 2025 +0100
fix(ci): upload assets properly
---
.github/actions/release-nightly/action.yml | 32 +++++++++++++-----------------
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/.github/actions/release-nightly/action.yml
b/.github/actions/release-nightly/action.yml
index 653d69ad3..82d6c45a4 100644
--- a/.github/actions/release-nightly/action.yml
+++ b/.github/actions/release-nightly/action.yml
@@ -182,7 +182,7 @@ runs:
operator-sdk run bundle docker.io/testcamelk/camel-k-bundle:${{
env.VERSION }}
```
- NOTE: last updated on $TIMESTAMP
+ NOTE: last updated on ${TIMESTAMP}
EOF
)
@@ -228,22 +228,18 @@ runs:
RELEASE_ID=${{ env.RELEASE_ID }}
FILES="./camel-k-client*.tar.gz sbom.json"
- if [ -n "$ASSETS" ]; then
- for FILE in $FILES; do
- if [ -f "$FILE" ]; then
- FILE_NAME=$(basename "$FILE")
- echo "Uploading $FILE_NAME..."
- curl -s -X POST \
- -H "Authorization: token $GITHUB_TOKEN" \
- -H "Content-Type: application/octet-stream" \
- --data-binary @"$FILE" \
-
"https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/$RELEASE_ID/assets?name=$(basename
$FILE)"
- else
- echo "File $FILE not found, skipping."
- fi
- done
- else
- echo "No assets to upload."
- fi
+ for FILE in $FILES; do
+ if [ -f "$FILE" ]; then
+ FILE_NAME=$(basename "$FILE")
+ echo "Uploading $FILE_NAME..."
+ curl -s -X POST \
+ -H "Authorization: token $GITHUB_TOKEN" \
+ -H "Content-Type: application/octet-stream" \
+ --data-binary @"$FILE" \
+
"https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/$RELEASE_ID/assets?name=$(basename
$FILE)"
+ else
+ echo "File $FILE not found, skipping."
+ fi
+ done
echo "Release ${{ env.TAG }} created successfully with artifacts."