diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e22f6b02..9a7858c66 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/' )