From 6416936eecb11225d648787ad7803eae6a321350 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Thu, 1 Dec 2022 14:19:14 +0100 Subject: [PATCH] Fix production builds for Flask (#16757) --- .circleci/config.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1ad78042..964c10847 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -344,9 +344,25 @@ jobs: - checkout - attach_workspace: at: . - - run: - name: build:dist - command: yarn build --build-type flask dist + - when: + condition: + not: + matches: + pattern: /^master$/ + value: << pipeline.git.branch >> + steps: + - run: + name: build:dist + command: yarn build --build-type flask dist + - when: + condition: + matches: + pattern: /^master$/ + value: << pipeline.git.branch >> + steps: + - run: + name: build:prod + command: yarn build --build-type flask prod - run: name: build:debug command: find dist/ -type f -exec md5sum {} \; | sort -k 2