you can find some commercial grade string lights whose cords are made from heavy-duty wire and have special weather-proof sockets that form a seal around the light bulb to keep water out.
Commercial grade string lights are recommended for permanent installations intended to be left up...