Skip to content

Commit

Permalink
fix: update actions in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Dec 6, 2021
1 parent 5c4189a commit 55e1d33
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,24 +106,24 @@ echo
echo "### Step 3: Prepare deploy for release"
echo

prepare_release 'doubtfire-deploy' "${APP_PATH}"
DEPLOY_VERSION=$(git describe --abbrev=0 --tags)

cd "${APP_PATH}/releases"
mkdir -p $RELEASE_VERSION
echo "$API_VERSION" > "${RELEASE_VERSION}/.apiversion"
echo "$WEB_VERSION" > "${RELEASE_VERSION}/.webversion"
echo "$OVERSEER_VERSION" > "${RELEASE_VERSION}/.overseer"
cp -r ./release-template/. ./${RELEASE_VERSION}
echo "https://github.com/doubtfire-lms/doubtfire-web/blob/${WEB_VERSION}/CHANGELOG.md" > ${RELEASE_VERSION}/WEB_CHANGELOG.md
echo "https://github.com/doubtfire-lms/doubtfire-api/blob/${API_VERSION}/CHANGELOG.md" > ${RELEASE_VERSION}/API_CHANGELOG.md
echo "https://github.com/doubtfire-lms/doubtfire-overseer/blob/${OVERSEER_VERSION}/CHANGELOG.md" > ${RELEASE_VERSION}/OVERSEER_CHANGELOG.md
echo "$API_VERSION" > "${DEPLOY_VERSION}/.apiversion"
echo "$WEB_VERSION" > "${DEPLOY_VERSION}/.webversion"
echo "$OVERSEER_VERSION" > "${DEPLOY_VERSION}/.overseer"
cp -r ./release-template/. ./${DEPLOY_VERSION}
echo "https://github.com/doubtfire-lms/doubtfire-web/blob/${WEB_VERSION}/CHANGELOG.md" > ${DEPLOY_VERSION}/WEB_CHANGELOG.md
echo "https://github.com/doubtfire-lms/doubtfire-api/blob/${API_VERSION}/CHANGELOG.md" > ${DEPLOY_VERSION}/API_CHANGELOG.md
echo "https://github.com/doubtfire-lms/doubtfire-overseer/blob/${OVERSEER_VERSION}/CHANGELOG.md" > ${DEPLOY_VERSION}/OVERSEER_CHANGELOG.md

echo
echo "Please update release notes, and push them to origin before continuing here..."
echo "Please update release notes, commit, and push to origin before continuing..."

read -p "Press enter to continue" TEMP

prepare_release 'doubtfire-deploy' "${APP_PATH}"
DEPLOY_VERSION=$(git describe --abbrev=0 --tags)

echo
echo "### Step 4: Push releases"
echo
Expand Down

0 comments on commit 55e1d33

Please sign in to comment.