diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2ef1e93..86ca0a03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,6 @@ env: MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} MAVEN_CENTRAL_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }} MAVEN_CENTRAL_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }} - MAVEN_CLI_OPTS: "-B -q -e -fae -V -DinstallAtEnd=true -U" jobs: pre_commit: @@ -50,6 +49,9 @@ jobs: runs-on: ubuntu-latest needs: [pre_commit] if: "!contains(github.event.head_commit.message, '[skip tests]')" + env: + MAVEN_CLI_OPTS: > + -B -q -e -fae -V -DinstallAtEnd=true -U steps: - uses: actions/checkout@v3 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.0 @@ -156,12 +158,13 @@ jobs: runs-on: ubuntu-latest needs: [tests] if: > - !(failure() || cancelled()) && - github.event_name != 'pull_request' + contains(github.event.head_commit.message, '[publish]') steps: - uses: actions/checkout@v3 + - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.35.0 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.0 - name: "Build" run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V - name: "Publish" - run: mvn $MAVEN_CLI_OPTS deploy -DskipTests \ No newline at end of file + timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} + run: mvn deploy $MAVEN_CLI_OPTS -DskipTests \ No newline at end of file diff --git a/pom.xml b/pom.xml index 6fd44207..b3d8b71f 100644 --- a/pom.xml +++ b/pom.xml @@ -522,8 +522,8 @@ - central-releases-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2 + alfresco-public + https://artifacts.alfresco.com/nexus/content/groups/public alfresco-public-snapshots