Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare homebrew distribution #1071

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Build artifacts
run: ./gradlew -Penv=stable -Prelease=${{ github.event.inputs.version }} clean assemble
- name: Release
run: ./gradlew -Penv=stable -Prelease=${{ github.event.inputs.version }} jreleaserRelease
run: ./gradlew -Penv=stable -Prelease=${{ github.event.inputs.version }} jreleaserFullRelease --exclude-announcer=twitter
- name: Update MongoDB
env:
MONGO_URL: ${{ secrets.MONGO_URL }}
Expand Down
4 changes: 2 additions & 2 deletions gradle/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jreleaser {
distributionType = 'BINARY'
artifact {
path = "build/distributions/{{distributionName}}-${sdkmanVersion}.zip"
// the platform has only been added because the Homebrew packager requires it
// the resulting ZIP file is actually platform-independent
// binary artifacts are platform-dependent and require a platform identifier
// see https://github.com/jreleaser/jreleaser/issues/794 for more details
platform = "osx-x86_64"
}
brew {
Expand Down
4 changes: 2 additions & 2 deletions src/jreleaser/distributions/sdkman-cli/brew/README.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ sdk version
The output should look similar to this

```sh
SDKMAN {{version}}
```
SDKMAN {{projectVersion}}
```