Skip to content

Commit

Permalink
Fixing the release script. (#3295)
Browse files Browse the repository at this point in the history
* Fixing the release script.

* Updating the submodules.
  • Loading branch information
dessalines committed Jun 27, 2023
1 parent 211e76d commit 98482b1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ third_semver=$(echo $new_tag | cut -d "." -f 3)
# IE, when the third semver is a number, not '2-rc'
if [ ! -z "${third_semver##*[!0-9]*}" ]; then
pushd ../docker
sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" ../docker-compose.yml
sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" ../docker-compose.yml
sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" ../federation/docker-compose.yml
git add ../docker-compose.yml
git add ../federation/docker-compose.yml
sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" docker-compose.yml
sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" docker-compose.yml
sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" federation/docker-compose.yml
git add docker-compose.yml
git add federation/docker-compose.yml
popd

# Setting the version for Ansible
pushd ../../../lemmy-ansible
pushd ../../lemmy-ansible
echo $new_tag > "VERSION"
git add "VERSION"
git commit -m"Updating VERSION"
Expand All @@ -38,6 +38,10 @@ cargo check
git add Cargo.lock
popd

# Update the submodules
git submodule update --remote
git add crates/utils/translations

# The commit
git commit -m"Version $new_tag"
git tag $new_tag
Expand Down

0 comments on commit 98482b1

Please sign in to comment.