Skip to content

Commit

Permalink
refactor: naming convetions
Browse files Browse the repository at this point in the history
  • Loading branch information
maancham committed Oct 8, 2024
1 parent 51ba92e commit 5097d53
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 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,9 +52,6 @@ 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/[email protected]
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
Expand Down

0 comments on commit 5097d53

Please sign in to comment.