Skip to content

Commit

Permalink
[hibernate#1930] Remove snapshots releases from main branch
Browse files Browse the repository at this point in the history
Snapshot builds tend to fail quite often and sometimes we cannot even
fix an issue until another project has been released.

I moved the build testing the snapshots under the branches `wip/*`.
This way the failure of a build using snapshots won't affect the
release of stable versions.
  • Loading branch information
DavideD committed Aug 1, 2024
1 parent b09e201 commit c557508
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,30 +212,6 @@ jobs:
name: reports-java${{ matrix.java.name }}
path: './**/build/reports/'

snapshot:
name: Create snapshot
if: github.event_name == 'push' && startsWith( github.ref, 'refs/heads/' )
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2.2.0
with:
distribution: 'temurin'
java-version: 11
- name: Create artifacts
run: ./gradlew assemble
- name: Detect the version of Hibernate Reactive
id: detect-version
run: |
sed -E 's/^projectVersion( *= *| +)([^ ]+)/::set-output name=version::\2/g' gradle/version.properties
- name: Publish snapshot to JBoss Nexus
env:
ORG_GRADLE_PROJECT_jbossNexusUser: ${{ secrets.JBOSS_NEXUS_USER }}
ORG_GRADLE_PROJECT_jbossNexusPassword: ${{ secrets.JBOSS_NEXUS_PASSWORD }}
if: endsWith( steps.detect-version.outputs.version, '-SNAPSHOT' ) && env.ORG_GRADLE_PROJECT_jbossNexusUser
run: ./gradlew publishToJBossNexus closeAndReleaseJBossNexusStagingRepository

release:
name: Release
if: github.event_name == 'push' && startsWith( github.ref, 'refs/tags/' )
Expand Down

0 comments on commit c557508

Please sign in to comment.