# Using Github Actions to deploy theme updates to Ghost Pro

**URL:** <https://forum.ghost.org/t/using-github-actions-to-deploy-theme-updates-to-ghost-pro/46855>\
**Category:** Integrations & API\
**Created:** [April 25, 2024, 8:15pm UTC](https://forum.ghost.org/t/using-github-actions-to-deploy-theme-updates-to-ghost-pro/46855 "2024-04-25T20:15:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mc-123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mc-123/32/30103_2.png) [@mc-123](https://forum.ghost.org/u/mc-123)\
**Post date:** [April 25, 2024, 8:15pm UTC](https://forum.ghost.org/t/using-github-actions-to-deploy-theme-updates-to-ghost-pro/46855/1 "2024-04-25T20:15:42Z")

</div>

I’m new here and wanted to share something with the community to help others learn to set up the theme auto-deploy GitHub action.

It’s important to note that if you are using **Ghost Pro hosting** and attempting to use the “stock” GitHub actions file displayed [here](https://ghost.org/integrations/github/), you will also need to add a step to **convert your theme files into a zip file**.

Here’s how to do it in the deploy-theme.yml file.

`name: Deploy Theme  
on:  
push:  
branches:  
- master  
- main  
jobs:  
deploy:  
runs-on: ubuntu-latest  
steps:  
- name: Checkout code  
uses: actions/checkout@v4

```
  - name: Zip theme files
    run: zip -r theme.zip .

  - name: Deploy Ghost Theme to Ghost Pro
    uses: TryGhost/action-deploy-theme@v1
    with:
      api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
      api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
      theme-name: "Custom Theme"
      file: ./theme.zip

```

`

Additional notes:

- When setting up the github repo, I placed the package.json at the same level as the index.hbs file so you will notice that we are running the zip command at the root level of the directory.
