Skip to content

Commit

Permalink
build(GitHub): Add a step to create release notes
Browse files Browse the repository at this point in the history
This requires infinite fetch depth to be sure to get all tags.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Sep 21, 2023
1 parent fec42d9 commit b8d2712
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit b8d2712

Please sign in to comment.