Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
fix: Fixes status responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
salehkhazaei committed Apr 26, 2024
1 parent 87f33bc commit e41a538
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 191 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,40 @@ jobs:
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
COSIGN_SECRET: ${{ secrets.COSIGN_SECRET }}

- name: update cli version in homebrew
run: |
sed -i "s+VERSION_HOMEBREW+$(echo "${{ steps.tag_version.outputs.new_tag }}" | sed 's/^.//')+g" homebrew/kaytu.rb
sha256sum build/ktucli-macos-amd64 | awk '{print $1}' > newHash
sed -i "s+HASH_MAC_AMD64+$(cat newHash)+g" homebrew/kaytu.rb
sha256sum build/ktucli-macos-arm64 | awk '{print $1}' > newHash
sed -i "s+HASH_MAC_ARM64+$(cat newHash)+g" homebrew/kaytu.rb
sha256sum build/ktucli-linux-arm64 | awk '{print $1}' > newHash
sed -i "s+HASH_LINUX_ARM64+$(cat newHash)+g" homebrew/kaytu.rb
sha256sum build/ktucli-linux-amd64 | awk '{print $1}' > newHash
sed -i "s+HASH_LINUX_AMD64+$(cat newHash)+g" homebrew/kaytu.rb
git clone https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/kaytu-io/homebrew-cli-tap.git
cd homebrew-cli-tap
git remote add homebrew-cli-tap-origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/kaytu-io/homebrew-cli-tap.git
git config user.name 'Kaytu Developer'
git config user.email '[email protected]'
cp ../homebrew/kaytu.rb kaytu.rb
git checkout main
git add .
git commit -a -m "update cli version"
git push homebrew-cli-tap-origin
cd ..
rm -rf homebrew-cli-tap
sign-windows:
runs-on: ubuntu-latest
needs:
Expand Down
Loading

0 comments on commit e41a538

Please sign in to comment.