From a76d72193942c21b130daaa54fee5fccb2245cdc Mon Sep 17 00:00:00 2001 From: Moriarty Date: Fri, 10 Mar 2023 12:04:59 +0100 Subject: [PATCH] feat: rename neccessary words to siera-cli from siera Signed-off-by: Moriarty --- .github/workflows/aur-release.yml | 10 +++++----- .github/workflows/brew-release.yml | 18 +++++++++--------- .github/workflows/choco-release.yml | 6 +++--- Cargo.toml | 2 +- README.md | 8 ++++---- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/aur-release.yml b/.github/workflows/aur-release.yml index aa063540..11b092ed 100644 --- a/.github/workflows/aur-release.yml +++ b/.github/workflows/aur-release.yml @@ -3,7 +3,7 @@ name: AUR Release on: workflow_run: workflows: ["build-and-release"] - types: + types: - completed workflow_dispatch: @@ -16,12 +16,12 @@ jobs: - name: Get PKGBUILD and .SRCINFO id: get_pkgbuild run: | - curl -o PKGBUILD https://raw.githubusercontent.com/animo/siera/main/pkg/PKGBUILD - curl -o .SRCINFO https://raw.githubusercontent.com/animo/siera/main/pkg/.SRCINFO + curl -o PKGBUILD https://raw.githubusercontent.com/animo/siera-cli/main/pkg/PKGBUILD + curl -o .SRCINFO https://raw.githubusercontent.com/animo/siera-cli/main/pkg/.SRCINFO - name: Gather data and rewrite PKGBUILD file id: gather_data_and_rewrite run: | - VERSION=$(curl --silent https://api.github.com/repos/animo/siera/releases | jq '.[0]' | jq -r .tag_name) + VERSION=$(curl --silent https://api.github.com/repos/animo/siera-cli/releases | jq '.[0]' | jq -r .tag_name) # strip the v prefix VERSION=${VERSION:1} # replace package version in PKGBUILD @@ -34,7 +34,7 @@ jobs: AUR_KEY: ${{secrets.AUR_KEY}} run: | # get the version - VERSION=$(curl --silent https://api.github.com/repos/animo/siera/releases | jq '.[0]' | jq -r .tag_name) + VERSION=$(curl --silent https://api.github.com/repos/animo/siera-cli/releases | jq '.[0]' | jq -r .tag_name) # create all ssh files/folders mkdir ~/.ssh touch ~/.ssh/aur diff --git a/.github/workflows/brew-release.yml b/.github/workflows/brew-release.yml index 03031883..732efa2c 100644 --- a/.github/workflows/brew-release.yml +++ b/.github/workflows/brew-release.yml @@ -3,7 +3,7 @@ name: Brew Release on: workflow_run: workflows: ["build-and-release"] - types: + types: - completed workflow_dispatch: @@ -21,8 +21,8 @@ jobs: - name: Gather data and rewrite ruby file id: gather_data_and_rewrite run: | - VERSION=$(curl -L --silent https://api.github.com/repos/animo/siera/releases | jq '.[-1]' | jq -r .tag_name) - URLS=$(curl -L --silent https://api.github.com/repos/animo/siera/releases | jq -r '.[] .assets[].browser_download_url' | grep "apple") # two lines with 1 download url each + VERSION=$(curl -L --silent https://api.github.com/repos/animo/siera-cli/releases | jq '.[-1]' | jq -r .tag_name) + URLS=$(curl -L --silent https://api.github.com/repos/animo/siera-cli/releases | jq -r '.[] .assets[].browser_download_url' | grep "apple") # two lines with 1 download url each URL_ARM=$(echo $URLS | grep -m1 "arm" | awk '{ print $1 }') URL_X86=$(echo $URLS | grep -m1 "x86" | awk '{ print $2 }') SHA_ARM=$(curl -L --silent $URL_ARM | shasum -a 256 | awk '{ print $1 }') @@ -40,9 +40,9 @@ jobs: env: API_TOKEN_GITHUB: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} with: - source_file: './siera.rb' - destination_repo: 'animo/homebrew-siera' - destination_folder: 'Formula' - user_email: 'development@animo.id' - user_name: 'Animo-bot' - commit_message: 'A new version of Siera has been released to homebrew' + source_file: "./siera.rb" + destination_repo: "animo/homebrew-siera" + destination_folder: "Formula" + user_email: "development@animo.id" + user_name: "Animo-bot" + commit_message: "A new version of Siera has been released to homebrew" diff --git a/.github/workflows/choco-release.yml b/.github/workflows/choco-release.yml index c16f2eed..2b105ec6 100644 --- a/.github/workflows/choco-release.yml +++ b/.github/workflows/choco-release.yml @@ -3,7 +3,7 @@ name: Choco Release on: workflow_run: workflows: ["build-and-release"] - types: + types: - completed workflow_dispatch: @@ -17,7 +17,7 @@ jobs: - name: get version shell: bash run: | - echo "VERSION=$(curl --silent https://api.github.com/repos/animo/siera/releases | jq '.[0]' | jq -r .tag_name)" >> $GITHUB_ENV + echo "VERSION=$(curl --silent https://api.github.com/repos/animo/siera-cli/releases | jq '.[0]' | jq -r .tag_name)" >> $GITHUB_ENV - name: update nuspec shell: bash run: | @@ -29,7 +29,7 @@ jobs: cd pkg/choco cp ../../LICENSE tools/LICENSE.txt cd tools - curl -L https://github.com/animo/siera/releases/download/${{ env.VERSION }}/windows-x86_64-siera.exe -o windows-x86_64-siera.exe + curl -L https://github.com/animo/siera-cli/releases/download/${{ env.VERSION }}/windows-x86_64-siera.exe -o windows-x86_64-siera.exe SHA_256=$(sha256sum windows-x86_64-siera.exe | awk '{ print $1 }') sed -i -e "3s|.*|\"$SHA_256\"|" VERIFICATION.txt - name: update choco folder diff --git a/Cargo.toml b/Cargo.toml index 63e116d1..0d1d15b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ authors = [ description = "Siera is a toolkit that allows you to interact with a Hyperledger Aries Cloud agent." homepage = "https://siera.animo.id" documentation = "https://docs.siera.animo.id" -repository = "https://github.com/animo/siera" +repository = "https://github.com/animo/siera-cli" categories = ["command-line-utilities"] license = "Apache-2.0" readme = "./README.md" diff --git a/README.md b/README.md index 01b4dec0..1afa210f 100644 --- a/README.md +++ b/README.md @@ -47,14 +47,14 @@ brew install siera ### Cargo install ```sh -cargo install --git https://github.com/animo/siera +cargo install --git https://github.com/animo/siera-cli ``` ### Manual build from source ```sh -git clone https://github.com/animo/siera -cd siera +git clone https://github.com/animo/siera-cli +cd siera-cli # Run ONE of the following commands to build: make build @@ -76,7 +76,7 @@ In order to work with Siera an agent needs to be configured. With the following siera configuration add --default ``` -This command will set up the community agent. To set up your own agent or use our multitenant agent to get your own environment, see the [set up guide](https://docs.siera.animo.id/guides/configuration). +This command will set up the community agent. To set up your own agent or use our multi-tenant agent to get your own environment, see the [set up guide](https://docs.siera.animo.id/guides/configuration). If you are getting started with the tool we recommend enabling informational logs by passing the `--verbose` (or `-v`) flag.