diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da87f8782cd98..25056f4220fc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ env.ORT_VERSION }} + fetch-depth: 0 - name: Setup Java uses: actions/setup-java@v3 with: @@ -41,8 +42,11 @@ jobs: run: ./gradlew publishAllPublicationsToOSSRHRepository - name: Build ORT Distributions run: ./gradlew :cli:distZip :helper-cli:distZip + - name: Generate Release Notes + run: ./gradlew -q printChangeLog > RELEASE_NOTES.md - name: Create GitHub Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create $ORT_VERSION ./cli/build/distributions/ort-$ORT_VERSION.zip ./helper-cli/build/distributions/orth-$ORT_VERSION.zip + gh release create $ORT_VERSION --notes-file RELEASE_NOTES.md \ + ./cli/build/distributions/ort-$ORT_VERSION.zip ./helper-cli/build/distributions/orth-$ORT_VERSION.zip