# Deploy Ghost Theme via Github actions

**URL:** <https://forum.ghost.org/t/deploy-ghost-theme-via-github-actions/10868>\
**Category:** Developer help\
**Created:** [December 17, 2019, 6:21pm UTC](https://forum.ghost.org/t/deploy-ghost-theme-via-github-actions/10868 "2019-12-17T18:21:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascalandy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pascalandy/32/444_2.png) [@pascalandy](https://forum.ghost.org/u/pascalandy)\
**Post date:** [December 17, 2019, 6:21pm UTC](https://forum.ghost.org/t/deploy-ghost-theme-via-github-actions/10868/1 "2019-12-17T18:21:53Z")

</div>

[This automation](https://github.com/marketplace/actions/deploy-ghost-theme) is very promising 🙂

Question: can I define which **branch** the CI should pull the code from?

In my case I would have two **branches** :

- “ **master** ” would be where I develop the theme
- “ **dist** ” is the output of `gulp build` ready to be uploaded on my ghost site

> **[Deploy Ghost Theme - GitHub Marketplace](https://github.com/marketplace/actions/deploy-ghost-theme)**
>
> Build & deploy a theme to your Ghost site

Thank you!

---

<div class="post-metadata">

**Author:** ![stevemitchell](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stevemitchell/32/163_2.png) [@stevemitchell](https://forum.ghost.org/u/stevemitchell)\
**Post date:** [December 17, 2019, 6:52pm UTC](https://forum.ghost.org/t/deploy-ghost-theme-via-github-actions/10868/2 "2019-12-17T18:52:11Z")

</div>

I’m pretty sure you could customize it for whichever branch you want it to run on. The yml file lists the branch, action, etc.

```auto
on:
  push:
    branches:
      - master
jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@master

```

---

<div class="post-metadata">

**Author:** ![pascalandy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pascalandy/32/444_2.png) [@pascalandy](https://forum.ghost.org/u/pascalandy)\
**Post date:** [December 17, 2019, 7:03pm UTC](https://forum.ghost.org/t/deploy-ghost-theme-via-github-actions/10868/3 "2019-12-17T19:03:49Z")

</div>

That seems to work 🙂 Will test 🙂
