Skip to content

Commit

Permalink
github tag&release
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-kerem committed Dec 10, 2024
1 parent d588d89 commit a4f3766
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/espresso-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: espresso-release

- name: Set up Java
uses: actions/setup-java@v4
Expand Down Expand Up @@ -61,14 +63,7 @@ jobs:
- name: Push new version to Git
id: push_to_git
run: |
version="${{ steps.upgrade.outputs.version }}"
trimmed_version=$(echo "$version" | xargs)
if [[ -z "$trimmed_version" ]]; then
echo "Version is empty or only whitespace, exiting"
exit 0
fi
tag_name="espresso-$trimmed_version"
tag_name="espresso-${{ steps.upgrade.outputs.version }}"
git add ./build.gradle
git commit -m "[release] $tag_name"
git tag $tag_name
Expand Down

0 comments on commit a4f3766

Please sign in to comment.