Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chain-id as second argument #7

Merged
merged 2 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[feat]: include chain-id as a second argument
  • Loading branch information
Fraccaman committed Jan 25, 2022
commit 8b92b365a3b50dfdaeb40914f31df9972fb2de76
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ Use it in the following commands.
To test run release:

```shell
./release.sh {archive_file_path} --draft
./release.sh {archive_file_path} {archive_file_name} --draft
```

To tag the master branch and upload the release archive created by `init-network` command, run:

```shell
./release.sh {archive_file_path}
./release.sh {archive_file_path} {archive_file_name}
```

For devnet use pre-release:

```shell
./release.sh {archive_file_path} --prerelease
./release.sh {archive_file_path} {archive_file_name} --prerelease
```
10 changes: 5 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# Must have authenticated `gh` available (see https://github.com/cli/cli) with
# write access to https://github.com/heliaxdev/anoma-network-config.
#
# The first argument is the name of the archive file which must be present in
# the current working directory. The archive's name is expected to be equal to
# the chain ID with a "tar.gz" suffix.
# The first argument is the path to the archive file.
# The archive's name is expected to be equal to the chain ID with a "tar.gz" suffix.
# The second argument is the chain ID.
#
# IMPORTANT: Use pre-release for the devnet, add `--prerelease` flag at the end
# when calling this script.
Expand All @@ -19,8 +19,8 @@
set -e

ARCHIVE_FILE_PATH=$1
CHAIN_ID=${ARCHIVE_FILE_PATH%".tar.gz"}
EXTRA_ARG=$2
CHAIN_ID=$2
EXTRA_ARG=$3
echo "Chain ID: $CHAIN_ID"
CWD=$(pwd)
ARCHIVE="$CWD/$ARCHIVE_FILE_PATH"
Expand Down