|
23 | 23 | # See https://github.com/hibernate/hibernate-orm/pull/4615 for a description of the behavior we're getting. |
24 | 24 | concurrency: |
25 | 25 | # Consider that two builds are in the same concurrency group (cannot run concurrently) |
26 | | - # if they use the same workflow and are about the same branch ("ref"), pull request, and branch (for scheduled job). |
| 26 | + # if they use the same workflow and are about the same branch ("ref"), pull request, and branch name input (for scheduled job). |
27 | 27 | group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}, branch=${{ inputs.branch }}" |
28 | 28 | # Cancel previous builds in the same concurrency group even if they are in process |
29 | 29 | # for pull requests or pushes to forks (not the upstream repository). |
@@ -237,64 +237,3 @@ jobs: |
237 | 237 | with: |
238 | 238 | name: reports-java${{ matrix.java.name }} |
239 | 239 | path: './**/build/reports/' |
240 | | - |
241 | | - snapshot: |
242 | | - name: Release snapshot |
243 | | - # Release the snapshots only if there are changes |
244 | | - if: github.event_name == 'push' && startsWith( github.ref, 'refs/heads/wip/' ) |
245 | | - runs-on: ubuntu-latest |
246 | | - steps: |
247 | | - - name: Checkout ${{ inputs.branch }} |
248 | | - uses: actions/checkout@v2 |
249 | | - - name: Set up JDK 11 |
250 | | - uses: actions/setup-java@v2.2.0 |
251 | | - with: |
252 | | - distribution: 'temurin' |
253 | | - java-version: 11 |
254 | | - - name: Create artifacts |
255 | | - run: ./gradlew assemble |
256 | | - - name: Detect the version of Hibernate Reactive |
257 | | - id: detect-version |
258 | | - run: | |
259 | | - sed -E 's/^projectVersion( *= *| +)([^ ]+)/::set-output name=version::\2/g' gradle/version.properties |
260 | | - - name: Publish snapshots to OSSRH, close repository and release |
261 | | - env: |
262 | | - ORG_GRADLE_PROJECT_sonatypeOssrhUser: ${{ secrets.SONATYPE_OSSRH_USER }} |
263 | | - ORG_GRADLE_PROJECT_sonatypeOssrhPassword: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} |
264 | | - run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository |
265 | | - |
266 | | - release: |
267 | | - name: Release |
268 | | - # Releases only happen on tags |
269 | | - if: github.event_name == 'push' && startsWith( github.ref, 'refs/tags/' ) |
270 | | - runs-on: ubuntu-latest |
271 | | - steps: |
272 | | - - uses: actions/checkout@v2 |
273 | | - - name: Set git username and email |
274 | | - run: | |
275 | | - git config --global user.email "hibernate@users.noreply.github.com" |
276 | | - git config --global user.name "hibernate" |
277 | | - - name: Set up JDK 11 |
278 | | - uses: actions/setup-java@v2.2.0 |
279 | | - with: |
280 | | - distribution: 'temurin' |
281 | | - java-version: 11 |
282 | | - - name: Create artifacts |
283 | | - run: ./gradlew assemble |
284 | | - - name: Install SSH key |
285 | | - uses: shimataro/ssh-key-action@v2 |
286 | | - with: |
287 | | - key: ${{ secrets.HIBERNATE_ORG_SSH_KEY }} |
288 | | - name: id_rsa_hibernate.org |
289 | | - known_hosts: ${{ secrets.HIBERNATE_ORG_SSH_KNOWN_HOSTS }} |
290 | | - config: | |
291 | | - Host github.com |
292 | | - User hibernate |
293 | | - IdentityFile ~/.ssh/id_rsa_hibernate.org |
294 | | - - name: Publish documentation on Hibernate.org |
295 | | - run: ./gradlew publishDocumentation -PdocPublishBranch=production |
296 | | - - name: Publish artifacts to OSSRH, close repository and release |
297 | | - env: |
298 | | - ORG_GRADLE_PROJECT_sonatypeOssrhUser: ${{ secrets.SONATYPE_OSSRH_USER }} |
299 | | - ORG_GRADLE_PROJECT_sonatypeOssrhPassword: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} |
300 | | - run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository |
0 commit comments