|
49 | 49 | run: "./gradlew :build-logic:check --no-configuration-cache" |
50 | 50 | - name: "Run check on project" |
51 | 51 | run: "./gradlew generateUsage && ./gradlew check" |
| 52 | + - name: "Create dist zip (java binary)" |
| 53 | + run: "./gradlew distZip" |
| 54 | + - name: "upload dist-zip" # for debugging |
| 55 | + uses: actions/upload-artifact@v4 |
| 56 | + with: |
| 57 | + name: "dist-zip" |
| 58 | + path: app/build/distributions/spotless-*.zip |
| 59 | + retention-days: 7 |
| 60 | + if-no-files-found: "error" |
52 | 61 | - name: "Get version and set to output" |
53 | 62 | id: get_version |
54 | 63 | run: echo "VERSION=$(./gradlew changelogPrintCurrentVersion --quiet)" >> "$GITHUB_OUTPUT" |
@@ -82,17 +91,11 @@ jobs: |
82 | 91 | java-version: 21 |
83 | 92 | - name: "Setup Gradle" |
84 | 93 | uses: "gradle/actions/setup-gradle@v4" |
85 | | - - name: "Retrieve binaries" |
| 94 | + - name: "Retrieve dist-zip" |
86 | 95 | uses: "actions/download-artifact@v4" |
87 | 96 | with: |
88 | | - # no name - download all artifacts |
89 | | - path: "app/build/collected-binaries" |
90 | | - - name: "Make sure downloaded binaries are executable" |
91 | | - if: "${{ matrix.platform.name == 'linux-x86_64' }}" |
92 | | - run: | |
93 | | - find app/build/collected-binaries -type f -name "spotless*" -exec chmod +x {} \; |
94 | | - - name: "Prepare release zips for distribution" |
95 | | - run: "./gradlew -PreleaseBinariesRootDir=app/build/collected-binaries prepareReleaseBinaryZips" |
| 97 | + name: "dist-zip" |
| 98 | + path: "app/build/distributions" |
96 | 99 | - name: "Prepare jreleaser for distribution" |
97 | 100 | run: "./gradlew prepareJReleaserConfig" |
98 | 101 | env: |
|
0 commit comments