Skip to content

Commit

Permalink
build relayer
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 11, 2024
1 parent 9b74aea commit 2ad8ad3
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/release-relayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "relayer/**"
branches:
- main
- clara/fix-merkle-proof
workflow_dispatch:

env:
Expand Down Expand Up @@ -60,29 +61,10 @@ jobs:
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Determine new version
id: new_version
run: |
# Get the most recent tag in the format relayer-v<version>
current_tag=$(git tag --list "relayer-v*" --sort=-v:refname | head -n 1)
current_version=$(git tag --list "relayer-v*" --sort=-v:refname | head -n 1 | sed -E 's/relayer-v//')
echo "Current version: $current_version"
# If there is no current version, set it to 1.0.0
if [ -z "$current_version" ]; then
new_version="1.0.0"
else
new_version=$(npx semver $current_version -i patch)
fi
echo "New version: $new_version"
echo "version=$new_version" >> $GITHUB_OUTPUT
echo "from_tag=$current_tag" >> $GITHUB_OUTPUT
- name: Create new tag
id: create_tag
run: |
tag_name="relayer-v${{ steps.new_version.outputs.version }}"
tag_name="relayer-fix-merkle-proof"
echo "Tag name: $tag_name"
echo "tag=$tag_name" >> $GITHUB_OUTPUT
git tag $tag_name
Expand All @@ -104,8 +86,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.create_tag.outputs.tag }}
release_name: ${{ steps.create_tag.outputs.tag }}
body: |
${{steps.build_changelog.outputs.changelog}}
draft: false
Expand Down

0 comments on commit 2ad8ad3

Please sign in to comment.