Skip to content

Commit

Permalink
Merge pull request #331 from fuzzypixelz/fix/release-workflow
Browse files Browse the repository at this point in the history
fix: Specify git remote when pushing the tag
  • Loading branch information
milyin authored Apr 12, 2024
2 parents 58a776a + 3c4f8c6 commit 817fe38
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions ci/scripts/bump-and-tag.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -xeo pipefail

# Release number
readonly version=${VERSION:-''}
readonly version=${VERSION:?input VERSION is required}
# Dependencies' pattern
readonly bump_deps_pattern=${BUMP_DEPS_PATTERN:-''}
# Dependencies' version
Expand Down Expand Up @@ -31,12 +31,7 @@ export GIT_COMMITTER_NAME=$git_user_name
export GIT_COMMITTER_EMAIL=$git_user_email

# Bump CMake project version
if [[ "$version" == '' ]]; then
# If no version has been specified, infer it using git-describe
printf '%s' "$(git describe)" > version.txt
else
printf '%s' "$version" > version.txt
fi
printf '%s' "$version" > version.txt
# Propagate version change to Cargo.toml and Cargo.toml.in
cmake . -DZENOHC_BUILD_IN_SOURCE_TREE=TRUE -DCMAKE_BUILD_TYPE=Release
# Update Debian dependency of libzenohc-dev
Expand Down Expand Up @@ -72,5 +67,5 @@ fi
git tag "$version" -m "v$version"
git log -10
git show-ref --tags
git push
git push "$version"
git push origin
git push origin "$version"

0 comments on commit 817fe38

Please sign in to comment.