Skip to content

Commit

Permalink
.internals: ensures release script does not pack AutomataCI's changelogs
Browse files Browse the repository at this point in the history
It appears the AutomataCI's changelogs are packed as part of src/
package which is undesirable. Hence, let's update the current script
not to do so.

This patch ensures the release script does not pack AutomataCI's
changelogs in .internals/ directory.

Co-authored-by: Shuralyov, Jean <[email protected]>
Co-authored-by: Galyna, Cory <[email protected]>
Co-authored-by: (Holloway) Chew, Kean Ho <[email protected]>
Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
  • Loading branch information
3 people committed Mar 22, 2024
1 parent ef8d719 commit 8704054
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .internals/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,21 @@ while IFS="" read -r __line || [ -n "$__line" ]; do
-C "$PROJECT_PATH_ROOT" "$__line" \
-C "$PROJECT_PATH_ROOT" "CONFIG.toml" \
-C "$PROJECT_PATH_ROOT" ".gitignore"
elif [ "$__line" = "src" ]; then
# move the changelog away first
___changelog_temp="${PROJECT_PATH_ROOT}/.changelog"
___changelog_real="${PROJECT_PATH_ROOT}/src/changelog/"
FS_Move "$___changelog_real" "$___changelog_temp"
FS_Make_Directory "$___changelog_real"

___dest="${___directory}/${PROJECT_SKU}-${__line}_${PROJECT_VERSION}.tar.gz"
FS_Remove_Silently "$___dest"
tar czvf "$___dest" -C "$PROJECT_PATH_ROOT" "$__line"


# restore the changelog back
FS_Remove_Silently "$___changelog_real"
FS_Move "$___changelog_temp" "$___changelog_real"
else
___dest="${___directory}/${PROJECT_SKU}-${__line}_${PROJECT_VERSION}.tar.gz"
FS_Remove_Silently "$___dest"
Expand Down

0 comments on commit 8704054

Please sign in to comment.