Nothing you do matters.
- Does the department need teaching in your specific subfield?
- Does the department like you?
Nothing else meaningfully affects your chances.
Be very careful where you invest your energies. Almost nothing you think you can do for your CV will help.
If this sounds like it would create a bleak and barren academic world - it would. But you want a job, not an epiphany.
After that, you just need to roll these loaded dice over and over again until you win.