# While creating release from develop pipeline its taking main branch code instead of branch in which pipeline executing

**URL:** <https://community.codefresh.io/t/while-creating-release-from-develop-pipeline-its-taking-main-branch-code-instead-of-branch-in-which-pipeline-executing/790>\
**Category:** Pipeline Workflows\
**Created:** [May 13, 2022, 9:26am UTC](https://community.codefresh.io/t/while-creating-release-from-develop-pipeline-its-taking-main-branch-code-instead-of-branch-in-which-pipeline-executing/790 "2022-05-13T09:26:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepanshu](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Deepanshu](https://community.codefresh.io/u/Deepanshu)\
**Post date:** [May 13, 2022, 9:26am UTC](https://community.codefresh.io/t/while-creating-release-from-develop-pipeline-its-taking-main-branch-code-instead-of-branch-in-which-pipeline-executing/790/1 "2022-05-13T09:26:40Z")

</div>

Hi,

I have build code and in the last I’m making a release of that code, Using a Create a GitHub release Typestep, Passing the arguments

```nohighlight
github_release:
  type: github-release
  title: Full example
  arguments:
    git_context_name: my-github-context
    release_name: my-release
    release_tag: my-tag-0.1.0
    release_description: My description
    prerelease: false
    repo_owner: some-owner
    repo_name: my-repo

```

in the release source code is created from main Branch, How can we define a Target branch while making a release

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [May 13, 2022, 2:48pm UTC](https://community.codefresh.io/t/while-creating-release-from-develop-pipeline-its-taking-main-branch-code-instead-of-branch-in-which-pipeline-executing/790/2 "2022-05-13T14:48:33Z")

</div>

Hello

I think this is more a Github question that a Codefresh one.

In Github a release starts from a Git tag [Managing releases in a repository - GitHub Docs](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release)

So this is why this step accepts `release_tag` tag as an argument.

The release is created from that tag regardless of which branch was used for tagging. If you wish to use a different branch, you need to tag it first.
