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

feat: rename neccessary words to siera-cli from siera #251

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 5 additions & 5 deletions .github/workflows/aur-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: AUR Release
on:
workflow_run:
workflows: ["build-and-release"]
types:
types:
- completed
workflow_dispatch:

Expand All @@ -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
Expand All @@ -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
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/brew-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Brew Release
on:
workflow_run:
workflows: ["build-and-release"]
types:
types:
- completed
workflow_dispatch:

Expand All @@ -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 }')
Expand All @@ -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: '[email protected]'
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: "[email protected]"
user_name: "Animo-bot"
commit_message: "A new version of Siera has been released to homebrew"
6 changes: 3 additions & 3 deletions .github/workflows/choco-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Choco Release
on:
workflow_run:
workflows: ["build-and-release"]
types:
types:
- completed
workflow_dispatch:

Expand All @@ -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: |
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down