Skip to content

Commit

Permalink
create a tag when doing release builds (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk authored Dec 14, 2023
1 parent 7213eae commit c7bed12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@ jobs:
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
- name: Create release tag for release builds
env:
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
if: "${{ inputs.release_type == 'final' }}"
run: |
VERSION_NUMBER=$(grep ^version= gradle.properties | sed -e 's/^.*=//')
VERSION="v${VERSION_NUMBER}"
git tag ${VERSION}
git push origin ${VERSION}

0 comments on commit c7bed12

Please sign in to comment.