This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git
The following commit(s) were added to refs/heads/main by this push: new ac1af8e6 feat(ci): publish snapshot on release branches ac1af8e6 is described below commit ac1af8e65e34d6485f342f42c4534fefa3ada707 Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Fri Oct 21 16:29:56 2022 +0200 feat(ci): publish snapshot on release branches and push also sources and m2 (required by Camel K) --- .github/workflows/ci-build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 1716ed6e..0faad693 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -180,7 +180,8 @@ jobs: needs: - build-native - build-native-examples - if: github.ref == 'refs/heads/main' + # Run only when pushing to the branches (either main or release), never on merge requests + if: ${{ github.event_name == 'push' }} env: NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }} NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }} @@ -193,4 +194,8 @@ jobs: with: version: '11' - name: Deploy to ASF Snapshots Repository - run: ./mvnw ${MAVEN_ARGS} clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml + # Deploy both artifacts and sources (may be required by Camel K) + run: | + ./mvnw ${MAVEN_ARGS} clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml + cd distribution + ./mvnw ${MAVEN_ARGS} clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml -Prelease