Rework of the upload workflow

Also fixes #153.

One important thing about this pull request, it breaks the Jasmine tests for a reason I can't explain.