Custom deployment

When I’m trying to deploy my local changes to the core (including admin client) with grunt release, git in the admin client directory always changes to a detached head that ignores my changes in a new branch. Thus my changes to the admin client are not included in the release zip. Any help here?

Ok, just figured it out. For anyone who runs into similar issues: The grunt release task as defined in the Gruntfile starts with updating the submodules. I deleted ‘update_submodules:pinned’ from the array of tasks.