Ranged minions attack automatically when they are aligned with enemies and you use turns with other minions. :)
But if you only have 1 minion alive (the goblin archer) you can't do that. The game lacks a skip turn key so in this case the gobling archer would attack.