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

fix(ci): axelard r2 bucket indexing #2193

Merged
merged 2 commits into from
Oct 8, 2024
Merged
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
19 changes: 8 additions & 11 deletions .github/workflows/build-binaries-and-push-to-r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,23 +21,23 @@ 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
with:
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
Expand All @@ -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/[email protected]
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CF }}
Expand Down
Loading