#!/bin/bash # Create folders based on branch for publishing debian packages # The master branch is rewritten to the development component # build/dist/{development,testing,acceptation,production} ## DIST_PATH="./build/dist" component="${BRANCH_NAME}" [[ "${component}" == "master" ]] && component="development"; if [[ "${component}" == "development" || "${component}" == "testing" || "${component}" == "acceptation" || "${component}" == "production" ]]; then echo "Creating dist package for component: '${component}'" mkdir -p ${DIST_PATH}/${component} cp build/Release/*.deb ${DIST_PATH}/${component}/ else echo "NO dist package for component: '${component}'" fi