# Hubspots Github Deploy Action doesn't update asset files correctly

**URL:** <https://community.hubspot.com/t/hubspots-github-deploy-action-doesnt-update-asset-files-correctly/127105>\
**Category:** CMS Development\
**Tags:** design-manager, local-development\
**Created:** [February 28, 2025, 2:26pm UTC](https://community.hubspot.com/t/hubspots-github-deploy-action-doesnt-update-asset-files-correctly/127105 "2025-02-28T14:26:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ICarow](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@ICarow](https://community.hubspot.com/u/ICarow)\
**Post date:** [February 28, 2025, 2:26pm UTC](https://community.hubspot.com/t/hubspots-github-deploy-action-doesnt-update-asset-files-correctly/127105/1 "2025-02-28T14:26:31Z")

</div>

We are developing a theme for hubspot. When we are commiting to the develop branch a github action runs to deploy the files to the hubspot theme folder. If we now call a webpage containing the theme, some assets are not reflecting the currently committed versions. To fix this we need to go to the Design Manager and change every affected file and publish it.  
Does anyone know how to prevent this?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 3, 2025, 5:00pm UTC](https://community.hubspot.com/t/hubspots-github-deploy-action-doesnt-update-asset-files-correctly/127105/2 "2025-03-03T17:00:04Z")

</div>

Hi @ICarow 👋 Thanks for your question. I found a few related threads, but none that are a solution for your issue. I’d like to invite some of our community members to the conversation – hey @BarryGrennan @FrancoQ @Bortami have you ever dealt with this issue? Or a similar one?

Thank you very much for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![Bortami](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bortami/32/221350_2.png) [@Bortami](https://community.hubspot.com/u/Bortami)\
**Post date:** [March 28, 2025, 3:19pm UTC](https://community.hubspot.com/t/hubspots-github-deploy-action-doesnt-update-asset-files-correctly/127105/3 "2025-03-28T15:19:18Z")

</div>

Can you share your GitHub Actions script?

Is the issue that the action is not pushing any of your updates to the design manager, some of your updates, or is missing files?

---

<div class="post-metadata">

**Author:** ![ICarow](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@ICarow](https://community.hubspot.com/u/ICarow)\
**Post date:** [March 28, 2025, 3:36pm UTC](https://community.hubspot.com/t/hubspots-github-deploy-action-doesnt-update-asset-files-correctly/127105/4 "2025-03-28T15:36:15Z")

</div>

Sure. It is just the standard Hubspot GH Action:

 ![SCR-20250328-oloz.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/1/81a30ee47627d760b0843f171bb8f72b9de527e1.png)

All files are uploaded to the system, but some of the JS files are not updated. So it seems if you call a page. In the developer console, you get error messages concerning some Scripts missing and some CORS related messages. Only if we are changing all Javascript files in the design manager (just put a line break and save), Hubspot seem to realize that there have been changes and corrects them.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [October 1, 2026, 10:48am UTC](https://community.hubspot.com/t/hubspots-github-deploy-action-doesnt-update-asset-files-correctly/127105/5 "2026-10-01T10:48:54Z")

</div>

Hi @ICarow

I’ve seen this happen with GitHub deployments. First, check that the GitHub Action is actually updating the files in the correct HubSpot theme folder. If the files are updated in Design Manager but the live page still shows the old version, it’s most likely caching. Also, make sure you’re using HubL asset functions like **get\_asset\_url()** instead of hardcoded asset URLs.

I hope this helps you out. Please mark it as **Solution Accepted and Like** to help another Community member.  
This post was created with the assistance of AI tools

Thanks!
