# No workflow when create release through github

**URL:** <https://discuss.circleci.com/t/no-workflow-when-create-release-through-github/38822>\
**Category:** Build Environment\
**Tags:** github, deployment\
**Created:** [January 19, 2021, 12:49am UTC](https://discuss.circleci.com/t/no-workflow-when-create-release-through-github/38822 "2021-01-19T00:49:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![geirolz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/geirolz/32/26467_2.png) [@geirolz](https://discuss.circleci.com/u/geirolz)\
**Post date:** [January 19, 2021, 12:49am UTC](https://discuss.circleci.com/t/no-workflow-when-create-release-through-github/38822/1 "2021-01-19T00:49:31Z")

</div>

Hi, i’m having some troubles configuring my CircleCI workflow.  
I’m migrating my project from TravisCI.

CircleCI says me “No workflow” when i create a new release through github(that creates a new tag).  
I have one filter on tag with regex `/^v.*/` for `release` job.

I’m new to CircleCI so i guess i missed something.

**I’ve also tried:**

- no filters at all [_Not worked_]
- branch filter, to ignore all branches [_Not worked_]
- different tag regex [_Not worked_]
- completely new tag [_Not worked_]
- no-RC tag(i.e `v2.3.0`) [_Not worked_]

**Error:**

 ![image](https://global.discourse-cdn.com/circleci/original/3X/a/8/a81b4650998467a2f8a948fe926cd55908e23e29.png)

**Settings:**

```auto
version: 2.1

executors:
  scala_jdk_executor:
    docker:
      - image: circleci/openjdk:10-jdk
        environment:
          SBT_OPTS: "-Xms512M -Xmx1024M -XX:MaxMetaspaceSize=1g"

############################## JOBS #################################
jobs:
  build:
    executor: scala_jdk_executor
    parameters:
      version:
        description: "Scala version"
        type: string
    steps:

      - checkout

      #restore cache
      - restore_cache:
          keys:
            - sbt-advxml-v1-{{ checksum "build.sbt" }}
            - sbt-advxml-v1-

      #build and test
      - run:
          name: Compile, Format, Test and Coverage for << parameters.version >>
          command: sbt ++<< parameters.version >> clean scalafmtCheck coverage test coverageReport

      #push coverage reports
      - run:
          name: Upload reports to Codecov
          command: bash <(curl -s https://codecov.io/bash)
      - run:
          name: Upload reports to Codacy
          command: bash <(curl -Ls https://coverage.codacy.com/get.sh)

      #save cache
      - save_cache:
          key: sbt-advxml-v1-{{ checksum "build.sbt" }}
          paths:
            - "~/.ivy2/cache"
            - "~/.sbt"
            - "~/.m2"

  release:
    executor: scala_jdk_executor
    steps:
      - checkout
      - run: git fetch --tags
      - run:
          name: Release
          command: sbt clean compile ci-release

############################## WORKFLOWS #################################
workflows:
  version: 2
  build-and-release:
    jobs:
      #--------------- BUILD ---------------#
      - build:
          name: build 2.12.8
          version: 2.12.8

      - build:
          name: build 2.13.4
          version: 2.13.4

      #--------------- DEPLOY ---------------#
      - release:
          name: release
          requires:
            - build 2.12.8
            - build 2.13.4
          filters:
            tags:
              only: /^v.*/

```

**Project:** [GitHub - geirolz/advxml: A lightweight, simple and functional library DSL to work with XML in Scala with Cats](https://github.com/geirolz/advxml)

**CircleCI:** [CircleCI](https://app.circleci.com/pipelines/github/geirolz/advxml)

Thanks for the support

---

<div class="post-metadata">

**Author:** ![punkdata](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/punkdata/32/25224_2.png) [@punkdata](https://discuss.circleci.com/u/punkdata)\
**Post date:** [January 21, 2021, 6:37pm UTC](https://discuss.circleci.com/t/no-workflow-when-create-release-through-github/38822/2 "2021-01-21T18:37:35Z")

</div>

Hi @geirolz Try getting rid of the `version: 2` key from the workflows: block. You don’t need it because you defined the version at the top of your config. Also I see you’re using parameters which are only enabled in `version: 2.1` and higher.

> [@geirolz](#):
>
> ```auto
> workflows:
> version: 2
> 
> ```

---

<div class="post-metadata">

**Author:** ![yannCI](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yannci/32/24866_2.png) [@yannCI](https://discuss.circleci.com/u/yannCI)\
**Post date:** [January 22, 2021, 1:32pm UTC](https://discuss.circleci.com/t/no-workflow-when-create-release-through-github/38822/3 "2021-01-22T13:32:46Z")

</div>

Hello @geirolz

In addition to @punkdata’s comment, I’d also suggest adding the tag filter to the two `build` jobs.

**By default** , CircleCI will build for all branches, but won’t build for any tag.

The `release` job requires both `build` jobs, so the tag filter needs to be added there too:

```
workflows:
  build-and-release:
    jobs:
      #--------------- BUILD ---------------#
      - build:
          name: build 2.12.8
          version: 2.12.8
          filters:
            tags:
              only: /^v.*/

      - build:
          name: build 2.13.4
          version: 2.13.4
          filters:
            tags:
              only: /^v.*/

      #--------------- DEPLOY ---------------#
      - release:
          name: release
          requires:
            - build 2.12.8
            - build 2.13.4
          filters:
            tags:
              only: /^v.*/
```

---

<div class="post-metadata">

**Author:** ![geirolz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/geirolz/32/26467_2.png) [@geirolz](https://discuss.circleci.com/u/geirolz)\
**Post date:** [January 26, 2021, 1:10pm UTC](https://discuss.circleci.com/t/no-workflow-when-create-release-through-github/38822/4 "2021-01-26T13:10:44Z")

</div>

Thank you guys! I’ve resolved using the same filter also on the build!

---

<div class="post-metadata">

**Author:** ![yannCI](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yannci/32/24866_2.png) [@yannCI](https://discuss.circleci.com/u/yannCI)\
**Post date:** [January 26, 2021, 1:23pm UTC](https://discuss.circleci.com/t/no-workflow-when-create-release-through-github/38822/5 "2021-01-26T13:23:24Z")

</div>

Closed on January 26, 2021, 1:23pm UTC


