Skip to content

Commit 1b55eac

Browse files
committed
chore: optimize release for unix and windows
1 parent eb030b7 commit 1b55eac

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ jobs:
118118
path: |
119119
out/jreleaser/trace.log
120120
out/jreleaser/output.properties
121+
- name: "upload distribution zips" # for chocolatey distribution
122+
uses: actions/upload-artifact@v4
123+
with:
124+
name: "spotless-distribution-zips"
125+
path: app/build/prepared-release-zips/spotless*.zip
126+
retention-days: 3
127+
if-no-files-found: "error"
121128
createChocoRelase:
122129
needs: createRelease
123130
name: "Publish chocolatey package"
@@ -134,18 +141,11 @@ jobs:
134141
with:
135142
distribution: "graalvm"
136143
java-version: 21
137-
- name: "Retrieve production-binaries"
144+
- name: "Download release zips"
138145
uses: "actions/download-artifact@v4"
139146
with:
140-
# no name - download all artifacts
141-
path: "app/build/collected-binaries"
142-
- name: "Make sure downloaded binaries are executable"
143-
run: |
144-
for /r "app\build\collected-binaries" %%f in (spotless*) do (
145-
icacls "%%f" /grant Everyone:RX
146-
)
147-
- name: "Prepare release zips for distribution"
148-
run: "./gradlew -Prelease=true -PreleaseForceVersion=${{ github.event.inputs.force_version }} -PreleaseBinariesRootDir=app/build/collected-binaries prepareReleaseBinaryZips"
147+
name: "spotless-distribution-zips" # download release zips only
148+
path: "app/build/prepared-release-zips"
149149
- name: "Prepare jreleaser for distribution"
150150
run: "./gradlew prepareJReleaserConfig"
151151
env:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99
### Fixed
1010
- Make sure release binaries are executable on unix systems
11+
- Make sure to use same zips for chocolatey distribution that are used for the release
1112

1213
## [0.1.0] - 2025-04-25
1314
### Added

0 commit comments

Comments
 (0)