Skip to content

Commit

Permalink
ci: fix bad paths in publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
bearstonedev committed Feb 20, 2024
1 parent 63dd8dd commit fef10d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions publish-update/publish-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [[ ${#} -ne 1 ]]; then
fi

currentVersion=()
IFS="." read -r -a currentVersion <<< "$(awk '{print $1}' scripts/published.version)"
IFS="." read -r -a currentVersion <<< "$(awk '{print $1}' publish-update/published.version)"
echo "Current version: v${currentVersion[0]}.${currentVersion[1]}.${currentVersion[2]}"

newVersion=("${currentVersion[@]}")
Expand All @@ -42,8 +42,8 @@ newVersionFull="v${newVersion[0]}.${newVersion[1]}.${newVersion[2]}"
echo "New version: ${newVersionFull}"

echo "Updating published.version with ${newVersionFull} ..."
echo -n "${newVersion[0]}.${newVersion[1]}.${newVersion[2]}" > scripts/published.version
git commit scripts/published.version -m "ci: upgrade to ${newVersionFull}" --no-verify && git push
echo -n "${newVersion[0]}.${newVersion[1]}.${newVersion[2]}" > publish-update/published.version
git commit publish-update/published.version -m "ci: upgrade to ${newVersionFull}" --no-verify && git push

echo "Creating a new tag for ${newVersionFull} ..."
git tag "${newVersionFull}"
Expand Down

0 comments on commit fef10d4

Please sign in to comment.