# GitHub Action & custom theme

**URL:** <https://forum.ghost.org/t/github-action-custom-theme/13286>\
**Category:** Developer help\
**Created:** [April 6, 2020, 6:45pm UTC](https://forum.ghost.org/t/github-action-custom-theme/13286 "2020-04-06T18:45:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SheanLV](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sheanlv/32/7475_2.png) [@SheanLV](https://forum.ghost.org/u/SheanLV)\
**Post date:** [April 6, 2020, 6:45pm UTC](https://forum.ghost.org/t/github-action-custom-theme/13286/1 "2020-04-06T18:45:57Z")

</div>

Hello,

I would like to manage my Ghost theme with github. I am using the Polar theme from the Ghost marketplace. I have unziped the folder and put it in a private github repo. I then followed the [Ghost+GitHub integration](https://ghost.org/integrations/github/).

When the GitHub action runs, it fails. I am new to Ghost, so I am sure there is something in which I am not fundamentally understanding as it related to this GitHub action script. Any advice would be greatly appreciated. I have provided my output of the error below.

**Deploy theme error from GitHub action**

 ![Screen Shot 2020-04-06 at 11.41.29 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/a/ade8c20191cb7188ca5d786186c3e840eacd2d31.png)

```
**deploy-theme.yml**
    name: Deploy Theme
    on:
      push:	
        branches:	
          - master
    jobs:
      deploy:
        runs-on: ubuntu-18.04
        steps:
          - uses: actions/checkout@master
          - uses: TryGhost/action-deploy-theme@v1.2.1
            with:
              api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
              api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
              theme-name: "polar-shean"

```

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [April 6, 2020, 9:07pm UTC](https://forum.ghost.org/t/github-action-custom-theme/13286/2 "2020-04-06T21:07:52Z")

</div>

It looks like the theme’s not validating when uploading to ghost. I would suggest you try uploading the theme to ghost via the admin panel. If you get an error, you need to get in touch with the theme author since it’s not compatible with your version of Ghost

---

<div class="post-metadata">

**Author:** ![SheanLV](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sheanlv/32/7475_2.png) [@SheanLV](https://forum.ghost.org/u/SheanLV)\
**Post date:** [April 6, 2020, 9:49pm UTC](https://forum.ghost.org/t/github-action-custom-theme/13286/3 "2020-04-06T21:49:54Z")

</div>

That helped quite a bit oddly enough, this was failing due to a misconfiguration I had trying to comment out a line of code in a hbs file. It’s working now! Thank you.
