diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4072424..15f4768 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,9 @@ env: CHANGE_LOG_FILE: CHANGELOG.md CHANGE_LOG_TMP_FILE: CHANGELOG_updated.md REPOSITORY_URL: 'https://maven.pkg.github.com/' + README_FILE: README.md + README_TEMPLATE_FILE: README_TEMPLATE.md + README_VERSION_PLACEHOLDER: $LATEST_VERSION jobs: release: @@ -66,6 +69,13 @@ jobs: -PgithubUserName=${{ github.actor }} -PgithubToken=${{ secrets.GITHUB_TOKEN }} \ -PgpgPassphrase=${{ secrets.GPG_PASSPHRASE }} -PgpgPrivateKey="${{ secrets.GPG_PRIVATE_KEY }}" + - name: Update README.md + id: readmeUpdate + run: | + sed 's/${{ env.README_VERSION_PLACEHOLDER }}/${{ env.RELEASE_VERSION }}/g' ${{ env.README_TEMPLATE_FILE }} > ${{ env.README_FILE }} + git add ${{ env.README_FILE }} + git commit -m "Readme update" + - name: Update CHANGELOG.md id: changelogUpdate run: |