Skip to content

Commit 53b2331

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

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ jobs:
144144
if: "${{ matrix.platform.name == 'linux-x86_64' }}"
145145
run: |
146146
find app/build/collected-binaries -type f -name "spotless*" -exec chmod +x {} \;
147-
- name: "Make sure downloaded binaries are executable"
148-
if: "${{ matrix.platform.name == 'windows-x86_64' }}"
149-
run: |
150-
for /r "app\build\collected-binaries" %%f in (spotless*) do (
151-
icacls "%%f" /grant Everyone:RX
152-
)
153147
- name: "Prepare release zips for distribution"
154148
run: "./gradlew -PreleaseBinariesRootDir=app/build/collected-binaries prepareReleaseBinaryZips"
155149
- name: "Prepare jreleaser for distribution"

.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)