Skip to content

Commit 5cddc51

Browse files
committed
fix(ci): make sure to generateUsage help files before triggering build
this makes sure that when README.md is updated with latest version number(s), there is also an up-to-date collection of usage help files available. This is required, because even when using a dependency to `generateUsage` task, the config phase of spotlessMarkdownApply has already picked up the empty/non-existing files, even though they would be available when the task is actually run... so by generating the files before hand, we make sure they are available in config phase of spotlessMarkdownApply.
1 parent 2d19bbb commit 5cddc51

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ jobs:
9393
run: |
9494
echo "$(./gradlew changelogPrintLatestVersionContent -Prelease=true -PreleaseForceVersion=${{ github.event.inputs.force_version }} --quiet)" > "app/build/release-notes.md"
9595
- name: "Create release"
96-
run: "./gradlew -Prelease=true -PreleaseForceVersion=${{ github.event.inputs.force_version }} -PreleaseBinariesRootDir=app/build/collected-binaries changelogPush"
96+
run: |
97+
./gradlew generateUsage
98+
./gradlew -Prelease=true -PreleaseForceVersion=${{ github.event.inputs.force_version }} -PreleaseBinariesRootDir=app/build/collected-binaries changelogPush
9799
env:
98100
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for gh cli usage
99101
- name: "Get version and set to output"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Adapted the build so that README.md does correctly include usage helps when updated during the release process
13+
1014
### Added
1115

1216
- Commit, tag and push the choco source files to the chocolatey-bucket repository during the release process

0 commit comments

Comments
 (0)