Solitons in a chain of charge-parity-symmetric dimers