Skip to content

Commit

Permalink
chore: add updating version number in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
r4tylmz committed Nov 14, 2024
1 parent b5c2d89 commit 53907ae
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,16 @@ jobs:
git tag -a v${{ steps.get_version.outputs.new_version }} -m "Release version ${{ steps.get_version.outputs.new_version }}"
git push origin v${{ steps.get_version.outputs.new_version }}
- name: Step 8 - Create GitHub Release
- name: Step 8 - Update README.md
run: |
sed -i.bak -E "s/<version>[0-9]+\.[0-9]+\.[0-9]+<\/version>/<version>${{ steps.get_version.outputs.new_version }}<\/version>/g" README.md
rm README.md.bak
git add README.md
git commit -m "Update version in README.md to ${{ steps.get_version.outputs.new_version }}"
git push origin ${{ github.ref_name }}
- name: Step 9 - Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.get_version.outputs.new_version }}
Expand All @@ -98,6 +107,6 @@ jobs:
```
* Available on Maven Central Repository
draft: true
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 53907ae

Please sign in to comment.