From 837c2eb01d7b45b4a0f94d7fb2ae4da435af060f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wamej?= Date: Fri, 3 Nov 2023 13:33:36 +0100 Subject: [PATCH] chore: point to S3 for new releases --- .github/workflows/updateCliFormula.yml | 3 +-- .gitignore | 1 + armory-cli_formula_template.txt | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/updateCliFormula.yml b/.github/workflows/updateCliFormula.yml index 75bfb4e..649f869 100644 --- a/.github/workflows/updateCliFormula.yml +++ b/.github/workflows/updateCliFormula.yml @@ -18,7 +18,7 @@ jobs: - name: construct base URL id: constructBaseUrl run: | - echo "baseUrl='https://github.com/armory-io/armory-cli/releases/download/v${{ github.event.client_payload.version }}/armory'" >> $GITHUB_OUTPUT + echo "baseUrl='https://armory-cli-releases.s3.amazonaws.com/cli/v${{ github.event.client_payload.version }}/armory'" >> $GITHUB_OUTPUT - name: compute Shas id: computeShas run: | @@ -39,4 +39,3 @@ jobs: with: commit_message: Update CLI Formula to ${{ github.event.client_payload.version }} branch: main - diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/armory-cli_formula_template.txt b/armory-cli_formula_template.txt index 92aa3cf..dee96eb 100644 --- a/armory-cli_formula_template.txt +++ b/armory-cli_formula_template.txt @@ -6,7 +6,7 @@ class ArmoryCli < Formula on_macos do if Hardware::CPU.intel? - url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-darwin-amd64" + url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-darwin-amd64" sha256 "#darwin-amd64-sha" def install @@ -14,7 +14,7 @@ class ArmoryCli < Formula end end if Hardware::CPU.arm? - url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-darwin-arm64" + url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-darwin-arm64" sha256 "#darwin-arm64-sha" def install @@ -25,7 +25,7 @@ class ArmoryCli < Formula on_linux do if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-linux-arm64" + url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-linux-arm64" sha256 "#linux-arm64-sha" def install @@ -33,7 +33,7 @@ class ArmoryCli < Formula end end if Hardware::CPU.intel? - url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-linux-amd64" + url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-linux-amd64" sha256 "#linux-amd64-sha" def install