diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 3f239cd..15480b4 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -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/[0-9]+\.[0-9]+\.[0-9]+<\/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 }} @@ -98,6 +107,6 @@ jobs: ``` * Available on Maven Central Repository - draft: true + draft: false prerelease: false token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file