|
73 | 73 | needs: nativeCompile |
74 | 74 | name: "Create a new release" |
75 | 75 | runs-on: ubuntu-latest |
| 76 | + outputs: |
| 77 | + RELEASE_VERSION: ${{ steps.get_version.outputs.VERSION }} |
76 | 78 | env: |
77 | 79 | SEGMENT_DOWNLOAD_TIMEOUT_MINS: "15" |
78 | 80 | steps: |
@@ -106,12 +108,52 @@ jobs: |
106 | 108 | JRELEASER_PROJECT_VERSION: ${{ steps.get_version.outputs.VERSION }} |
107 | 109 | JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
108 | 110 | JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.BREW_CHOCO_CLI_GH_TOKEN }} |
| 111 | + JRELEASER_DISTRIBUTIONS_SPOTLESS_CLI_BREW_ACTIVE: ALWAYS |
| 112 | + - name: "Persist jreleaser output" |
| 113 | + if: always() |
| 114 | + uses: actions/upload-artifact@v4 |
| 115 | + with: |
| 116 | + name: jreleaser-release-unix |
| 117 | + path: | |
| 118 | + out/jreleaser/trace.log |
| 119 | + out/jreleaser/output.properties |
| 120 | + createChocoRelase: |
| 121 | + needs: createRelease |
| 122 | + name: "Publish chocolatey package" |
| 123 | + runs-on: windows-latest |
| 124 | + env: |
| 125 | + SEGMENT_DOWNLOAD_TIMEOUT_MINS: "15" |
| 126 | + steps: |
| 127 | + - name: "Checkout" |
| 128 | + uses: actions/checkout@v4 |
| 129 | + with: |
| 130 | + fetch-depth: 0 |
| 131 | + - name: "Install JDK 21" |
| 132 | + uses: "actions/setup-java@v4" |
| 133 | + with: |
| 134 | + distribution: "graalvm" |
| 135 | + java-version: 21 |
| 136 | + - name: "Retrieve production-binaries" |
| 137 | + uses: "actions/download-artifact@v4" |
| 138 | + with: |
| 139 | + # no name - download all artifacts |
| 140 | + path: "app/build/collected-binaries" |
| 141 | + - name: "Publish distributions" |
| 142 | + uses: jreleaser/release-action@v2 |
| 143 | + with: |
| 144 | + setup-java: false |
| 145 | + arguments: "publish" |
| 146 | + env: |
| 147 | + JRELEASER_PROJECT_VERSION: ${{ jobs.createRelease.outputs.RELEASE_VERSION }} |
| 148 | + JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
109 | 149 | JRELEASER_CHOCOLATEY_GITHUB_TOKEN: ${{ secrets.BREW_CHOCO_CLI_GH_TOKEN }} |
| 150 | + JRELEASER_CHOCOLATEY_API_KEY: ${{ secrets.CHOCO_API_KEY }} |
| 151 | + JRELEASER_DISTRIBUTIONS_SPOTLESS_CLI_CHOCOLATEY_ACTIVE: ALWAYS |
110 | 152 | - name: "Persist jreleaser output" |
111 | 153 | if: always() |
112 | 154 | uses: actions/upload-artifact@v4 |
113 | 155 | with: |
114 | | - name: jreleaser-release |
| 156 | + name: jreleaser-release-windows |
115 | 157 | path: | |
116 | 158 | out/jreleaser/trace.log |
117 | 159 | out/jreleaser/output.properties |
0 commit comments