Skip to content

Commit 44bc698

Browse files
committed
[#1956] Remove release jobs from the GitHub workflow
1 parent ead62b8 commit 44bc698

File tree

1 file changed

+1
-62
lines changed

1 file changed

+1
-62
lines changed

.github/workflows/build.yml

+1-62
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
# See https://github.com/hibernate/hibernate-orm/pull/4615 for a description of the behavior we're getting.
2424
concurrency:
2525
# 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).
2727
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}, branch=${{ inputs.branch }}"
2828
# Cancel previous builds in the same concurrency group even if they are in process
2929
# for pull requests or pushes to forks (not the upstream repository).
@@ -237,64 +237,3 @@ jobs:
237237
with:
238238
name: reports-java${{ matrix.java.name }}
239239
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/[email protected]
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 "[email protected]"
276-
git config --global user.name "hibernate"
277-
- name: Set up JDK 11
278-
uses: actions/[email protected]
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

Comments
 (0)