Miovski scored 44 goals in 98 appearances for Aberdeen in a two-year spell before being sold to Girona last August.
He signed a four-year contract with the La Liga club, but he made only 16 starts and six substitute appearances, scoring four goals, last season for the side who finished 16th in the Spanish top flight.
The striker, capped 31 times for his country, came off after 43 minutes of their opening 3-1 defeat by Rayo Vallecano and was not in their squad for the 5-0 thrashing by Villarreal that followed.
Rangers were looking for forward additions after selling Hamza Igamane to Lille this week and Martin said: “His movement, intelligence and ability to score goals make him a real asset.
“He knows all about the Scottish Premiership and has a strong track record of performing and contributing in the league, so I am excited to welcome him to our squad.”
Sporting director Kevin Thelwell revealed Miovski had been “tracked closely” by Rangers, has “proven himself as a consistent goalscorer” and that his “knowledge of the Scottish Premiership is a huge advantage”.