What im asking is if I just take hits while afk with a shield up, as long as im taking some damage, will it raise my armor skill or just block?
No, Blocking raises Block. You must take an unblocked hit to raise your armor.
Let a Giant hit you if you can survive the blow. Heal up. Repeat. Every hit pretty much levels your armor.