Skip to content

Instantly share code, notes, and snippets.

@codetot
Created October 14, 2021 07:42
Show Gist options
  • Save codetot/aa30f4c17da6354ebe9f7199d04402e0 to your computer and use it in GitHub Desktop.
Save codetot/aa30f4c17da6354ebe9f7199d04402e0 to your computer and use it in GitHub Desktop.
CircleCI config for different task run by branch name
workflows:
version: 2
build_and_test:
jobs:
- test_code:
filters:
branches:
only: /(feature|bugfix|hotfix)\/?(.*)/
- build_assets:
filters:
branches:
only: /(develop|feature\/ci)/
- release_production:
filters:
branches:
only: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment