Skip to content

Commit

Permalink
Update release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed May 11, 2023
1 parent 73159ff commit 61937a0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env -S bash -e

set -eo pipefail

cd $(dirname $0)

main() {
Expand All @@ -15,7 +17,7 @@ main() {

prepare_release "$version" "$preview_txid" "$preprod_txid"

publish_release # fake for now
publish_release "$version" # fake for now
}

usage() {
Expand Down Expand Up @@ -67,11 +69,11 @@ prepare_release() {
publish_release() {
local version="$1"

echo Prepared the release commit and tag, review it now and if everything is okay, push using: >&2:
echo git push >&2
echo git push ${version} >&2
echo >&2
echo And then you shall manually create the release page, see CONTRIBUTING.md >&2
>&2 echo Prepared the release commit and tag, review it now and if everything is okay, push using:
>&2 echo git push
>&2 echo git push ${version}
>&2 echo
>&2 echo And then you shall manually create the release page, see CONTRIBUTING.md
}

# Checking helper functions
Expand Down Expand Up @@ -158,7 +160,7 @@ update_demo_version() {
local version="$1"
(
cd demo
sed -i -e "s,\(ghcr.io/input-output-hk/hydra-[^:]*\):[^[:space:]]*,\1:$version," *
sed -i -e "s,\(ghcr.io/input-output-hk/hydra-[^:]*\):[^[:space:]]*,\1:$version," docker-compose.yaml seed-devnet.sh
)
}

Expand Down

0 comments on commit 61937a0

Please sign in to comment.