Skip to content

Commit c557508

Browse files
committed
[#1930] Remove snapshots releases from main branch
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.
1 parent b09e201 commit c557508

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

.github/workflows/build.yml

-24
Original file line numberDiff line numberDiff line change
@@ -212,30 +212,6 @@ jobs:
212212
name: reports-java${{ matrix.java.name }}
213213
path: './**/build/reports/'
214214

215-
snapshot:
216-
name: Create snapshot
217-
if: github.event_name == 'push' && startsWith( github.ref, 'refs/heads/' )
218-
runs-on: ubuntu-latest
219-
steps:
220-
- uses: actions/checkout@v2
221-
- name: Set up JDK 11
222-
uses: actions/[email protected]
223-
with:
224-
distribution: 'temurin'
225-
java-version: 11
226-
- name: Create artifacts
227-
run: ./gradlew assemble
228-
- name: Detect the version of Hibernate Reactive
229-
id: detect-version
230-
run: |
231-
sed -E 's/^projectVersion( *= *| +)([^ ]+)/::set-output name=version::\2/g' gradle/version.properties
232-
- name: Publish snapshot to JBoss Nexus
233-
env:
234-
ORG_GRADLE_PROJECT_jbossNexusUser: ${{ secrets.JBOSS_NEXUS_USER }}
235-
ORG_GRADLE_PROJECT_jbossNexusPassword: ${{ secrets.JBOSS_NEXUS_PASSWORD }}
236-
if: endsWith( steps.detect-version.outputs.version, '-SNAPSHOT' ) && env.ORG_GRADLE_PROJECT_jbossNexusUser
237-
run: ./gradlew publishToJBossNexus closeAndReleaseJBossNexusStagingRepository
238-
239215
release:
240216
name: Release
241217
if: github.event_name == 'push' && startsWith( github.ref, 'refs/tags/' )

0 commit comments

Comments
 (0)