Skip to content

Commit

Permalink
chore: minor patches in brew release pipeline (#574)
Browse files Browse the repository at this point in the history
* chore: fixing bot access secret

* chore: update secret ids

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: cask url

* chore: extra paths ignores for cd workflow
  • Loading branch information
aorumbayev authored Sep 20, 2024
1 parent 25192e7 commit 4e60fdf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
- "**.md"
- ".vscode/**"
- ".idea/**"
- ".gitignore"
- ".editorconfig"
- ".pre-commit-config.yaml"
- ".github/**"
- "tests/**"
- "scripts/**"
workflow_dispatch:
inputs:
production_release:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish-release-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ jobs:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.ALGOKIT_GH_BOT_ID }}
private-key: ${{ secrets.ALGOKIT_GH_BOT_SK }}
app-id: ${{ secrets.BOT_ID }}
private-key: ${{ secrets.BOT_SK }}
repositories: homebrew-tap
owner: algorandfoundation

- name: Checkout source code
uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions scripts/update-brew-cask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ create_cask() {
cat << EOF > $cask_file
cask "$package_name" do
arch arm: "arm64", intel: "x64"
version "$version"
sha256 arm: "$arm_sha256", intel: "$intel_sha256"
sha256 arm: "$arm_sha256",
intel: "$intel_sha256"
url "$repo/releases/download/v#{version}/algokit-#{version}-macos_#{arch}.tar.gz"
url "$repo/releases/download/v#{version}/algokit-#{version}-macos_#{arch}-brew.tar.gz"
name "$package_name"
desc "$desc"
homepage "$homepage"
Expand Down

0 comments on commit 4e60fdf

Please sign in to comment.