9191 echo "- **Release version:** $RELEASE_VERSION" >> $GITHUB_STEP_SUMMARY
9292 echo "- **Next development version:** $DEV_VERSION" >> $GITHUB_STEP_SUMMARY
9393
94- - name : Update documentation with release version
95- run : |
96- VERSION="${{ steps.versions.outputs.release_version }}"
97-
98- # Update version in README.md
99- sed -i "s|<version>[0-9]*\.[0-9]*\.[0-9]*</version>|<version>${VERSION}</version>|g" README.md
100- sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" README.md
101-
102- # Update version in jbang-example.java
103- sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" jbang-example.java
104-
105- # Stage the documentation changes (will be committed by release:prepare)
106- git add README.md jbang-example.java
107-
10894 - name : Prepare Release
10995 run : |
11096 mvn -B release:prepare \
@@ -120,6 +106,22 @@ jobs:
120106 -Dgoals="deploy" \
121107 -Darguments="-DskipTests -Prelease"
122108
109+ - name : Update documentation with the released version
110+ run : |
111+ VERSION="${{ steps.versions.outputs.release_version }}"
112+
113+ # Update version in README.md
114+ sed -i "s|<version>[0-9]*\.[0-9]*\.[0-9]*</version>|<version>${VERSION}</version>|g" README.md
115+ sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" README.md
116+
117+ # Update version in jbang-example.java
118+ sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" jbang-example.java
119+
120+ # Stage the documentation changes (will be committed by release:prepare)
121+ git add README.md jbang-example.java
122+
123+ # Commit
124+ git commit -m "Update documentation for version ${VERSION}"
123125 github-release :
124126 name : Create GitHub Release
125127 needs : publish-maven
0 commit comments