From 57ecd83ab8a2621221dfdfabfda3c9f688b49d21 Mon Sep 17 00:00:00 2001 From: Houmaan Chamani Date: Tue, 8 Oct 2024 18:00:02 -0400 Subject: [PATCH] fix(ci): axelard r2 bucket indexing (#2193) --- .../build-binaries-and-push-to-r2.yaml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-binaries-and-push-to-r2.yaml b/.github/workflows/build-binaries-and-push-to-r2.yaml index b9d8e8c2c..aba42fc66 100644 --- a/.github/workflows/build-binaries-and-push-to-r2.yaml +++ b/.github/workflows/build-binaries-and-push-to-r2.yaml @@ -7,7 +7,7 @@ on: workflow_dispatch: inputs: branch: - description: Github branch to checkout for build + description: Github branch or tag to checkout for compilation required: true default: main type: string @@ -21,15 +21,15 @@ jobs: packages: write id-token: write steps: - - name: Determine branch - id: get-branch-name + - name: Determine checkout ref + id: get-checkout-ref run: | if [ "${{ github.event_name }}" == "push" ]; then - branch="main" + ref="main" else - branch="${{ inputs.branch }}" + ref="${{ inputs.branch }}" fi - echo "branch=$branch" >> $GITHUB_OUTPUT + echo "ref=$ref" >> $GITHUB_OUTPUT - name: Checkout code uses: actions/checkout@v4 @@ -37,7 +37,7 @@ jobs: fetch-depth: "0" path: axelar-core submodules: recursive - ref: ${{ steps.get-branch-name.outputs.branch }} + ref: ${{ steps.get-checkout-ref.outputs.ref }} - name: Build axelard binary with version and commit hash id: build-binary @@ -52,10 +52,7 @@ jobs: sudo mv axelar-core/bin/axelard ./$commit_hash/axelard-linux-amd64-$semver echo "binary-directory=./$commit_hash" >> $GITHUB_OUTPUT - - name: List contents of root directory - run: ls -la - - - uses: ryand56/r2-upload-action@latest + - uses: ryand56/r2-upload-action@v1.3.2 with: r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} r2-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CF }}