diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index a8fd1a4..9e210ed 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -212,8 +212,10 @@ jobs: NOTES_ASSET="Incido-$VERSION-changes.md" echo "--- Deleting stale asset for $NOTES_ASSET ---" python3 /tmp/delete_asset.py "$API" "$RELEASE_ID" "$NOTES_ASSET" "$GH_TOKEN" - cp "$NOTES_FILE" "/tmp/$NOTES_ASSET" - upload_asset "$NOTES_ASSET" "/tmp/$NOTES_ASSET" || exit 1 + # Upload $NOTES_FILE directly: it already IS /tmp/, so + # copying it onto itself made cp fail with exit 1 and killed the + # whole step (set -e) after the APKs had uploaded fine. + upload_asset "$NOTES_ASSET" "$NOTES_FILE" || exit 1 fi echo "--- Final release state ---"