Skip to content

Commit 3ade32e

Browse files
committed
Fix tag release build
CircleCI does not run workflows for tags unless you explicitly specify tag filters. Additionally, if a job requires any other jobs (directly or indirectly), you must use regular expressions to specify tag filters for those jobs.
1 parent e5b6fbb commit 3ade32e

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,23 +158,41 @@ jobs:
158158
- store_artifacts:
159159
path: build/dist
160160

161+
# CircleCI does not run workflows for tags unless you explicitly specify tag filters. Additionally,
162+
# if a job requires any other jobs (directly or indirectly), you must use regular expressions to
163+
# specify tag filters for those jobs.
161164
workflows:
162165
version: 2
163166
build:
164167
jobs:
165-
- lint
168+
- lint:
169+
filters:
170+
tags:
171+
only: /.*/
166172
- test_clang_debug:
167173
requires:
168174
- lint
175+
filters:
176+
tags:
177+
only: /.*/
169178
- test_clang_release:
170179
requires:
171180
- lint
181+
filters:
182+
tags:
183+
only: /.*/
172184
- test_gcc_debug:
173185
requires:
174186
- lint
187+
filters:
188+
tags:
189+
only: /.*/
175190
- test_gcc_release:
176191
requires:
177192
- lint
193+
filters:
194+
tags:
195+
only: /.*/
178196
- build_doc:
179197
requires:
180198
- test_clang_debug
@@ -192,7 +210,7 @@ workflows:
192210
- test_gcc_release
193211
filters:
194212
branches:
195-
only: master
213+
ignore: /.*/
196214
tags:
197215
only: /^\d+[.]\d+[.]\d+$/
198216
- deploy_doc:
@@ -206,6 +224,6 @@ workflows:
206224
- build_release
207225
filters:
208226
branches:
209-
only: master
227+
ignore: /.*/
210228
tags:
211229
only: /^\d+[.]\d+[.]\d+$/

0 commit comments

Comments
 (0)