gitlab-ci: Simplify macOS packaging jobs

Run cpack in a post-build step instead of duplicating the job script.
5 files changed