Frontend build process with ci pipeline

I have a frontend project. On build it creates all static build in a dist folder. I would like to include this build process in a pipeline. I’ve got to create this folder with the right files in it, but goal was to be able to push this folder to the repository but I have an error:

fatal: Authentication failed for 'http://gitlab-ci-token:xxxxxx@…

and I’m not sure how to solve it

Bug report filed see https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1721