Duke ran, and was elected as a Republican.
Name one public office he won. He ran as a Republican, but the Republican party at all levels repudiated him and endorsed his opponents. As I remember, he lost every election for which he ran.