Automating Nomad deployments from GitHub Actions

How I managed to trigger automated deployments from GitHub Actions of my Docker images with Nomad, hacking around Nomad variables, and securing the whole process with Nomad policies.