Do you not think a trained professional military could make that guerrilla warfare more costly for the occupiers?
Couldn't an effective military simply prevent the invasion?
Check out the CNT-FAI and how well that strategy worked for them in the late 30s.